You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> NOTE: Please make sure that `Node` is in your `PATH` environment variable. You can also use the setting `leetcode.nodePath` to specify the location of your `Node.js` executable.
> NOTE: Please make sure that `Node` is in your `PATH` environment variable. You can also use the setting `leetcode.nodePath` to specify the location of your `Node.js` executable.
## Quick Start
Expand All
@@ -50,11 +52,11 @@ Thanks for [@yihong0618](https://github.com/yihong0618) provided a workaround wh
- By clicking the button  at the **explorer's navigation bar**, you can switch between different endpoints.
- By clicking the button  at the **explorer's navigation bar**, you can switch between different endpoints.
- The supported endpoints are:
- The supported endpoints are:
- **leetcode.com**
- **leetcode.cn**
- **leetcode.com**
- **leetcode.cn**
> Note: The accounts of different endpoints are **not** shared. Please make sure you are using the right endpoint. The extension will use `leetcode.com` by default.
> Note: The accounts of different endpoints are **not** shared. Please make sure you are using the right endpoint. The extension will use `leetcode.com` by default.
---
Expand All
@@ -81,14 +83,14 @@ Thanks for [@yihong0618](https://github.com/yihong0618) provided a workaround wh
<img src="https://raw.githubusercontent.com/LeetCode-OpenSource/vscode-leetcode/master/docs/imgs/pick_problem.png" alt="Pick a Problem" />
</p>
- Directly click on the problem or right click the problem in the `LeetCode Explorer` and select `Preview Problem` to see the problem description.
- Select `Show Problem` to directly open the file with the problem description.
- Directly click on the problem or right click the problem in the `LeetCode Explorer` and select `Preview Problem` to see the problem description.
- Select `Show Problem` to directly open the file with the problem description.
> Note:You can specify the path of the workspace folder to store the problem files by updating the setting `leetcode.workspaceFolder`. The default value is:**$HOME/.leetcode/**.
> Note:You can specify the path of the workspace folder to store the problem files by updating the setting `leetcode.workspaceFolder`. The default value is:**$HOME/.leetcode/**.
> You can specify whether including the problem description in comments or not by updating the setting `leetcode.showCommentDescription`.
> You can specify whether including the problem description in comments or not by updating the setting `leetcode.showCommentDescription`.
> You can switch the default language by triggering the command: `LeetCode: Switch Default Language`.
> You can switch the default language by triggering the command: `LeetCode: Switch Default Language`.
---
Expand All
@@ -98,15 +100,15 @@ Thanks for [@yihong0618](https://github.com/yihong0618) provided a workaround wh
- The extension supports 5 editor shortcuts (aka Code Lens):
- The extension supports 5 editor shortcuts (aka Code Lens):
- `Submit`: Submit your answer to LeetCode.
- `Test`: Test your answer with customized test cases.
- `Star/Unstar`: Star or unstar the current problem.
- `Solution`: Show the top voted solution for the current problem.
- `Description`: Show the problem description page.
- `Submit`: Submit your answer to LeetCode.
- `Test`: Test your answer with customized test cases.
- `Star/Unstar`: Star or unstar the current problem.
- `Solution`: Show the top voted solution for the current problem.
- `Description`: Show the problem description page.
> Note: You can customize the shortcuts using the setting: `leetcode.editor.shortcuts`. By default, only `Submit` and `Test` shortcuts are enabled.
> Note: You can customize the shortcuts using the setting: `leetcode.editor.shortcuts`. By default, only `Submit` and `Test` shortcuts are enabled.
---
Expand All
@@ -116,7 +118,7 @@ Thanks for [@yihong0618](https://github.com/yihong0618) provided a workaround wh
<img src="https://raw.githubusercontent.com/LeetCode-OpenSource/vscode-leetcode/master/docs/imgs/search.png" alt="Search problems by Keywords" />
</p>
- By clicking the button  at the **explorer's navigation bar**, you can search the problems by keywords.
- By clicking the button  at the **explorer's navigation bar**, you can search the problems by keywords.
---
Expand All
@@ -126,7 +128,7 @@ Thanks for [@yihong0618](https://github.com/yihong0618) provided a workaround wh
- To manage your LeetCode sessions, just clicking the `LeetCode: ***` at the bottom of the status bar. You can **switch** between sessions or **create**, **delete** a session.
- To manage your LeetCode sessions, just clicking the `LeetCode: ***` at the bottom of the status bar. You can **switch** between sessions or **create**, **delete** a session.
## Settings
Expand DownExpand Up
@@ -160,5 +162,5 @@ Refer to [CHANGELOG](https://github.com/LeetCode-OpenSource/vscode-leetcode/blob
## Acknowledgement
- This extension is based on [@skygragon](https://github.com/skygragon)'s [leetcode-cli](https://github.com/skygragon/leetcode-cli) open source project.
- Special thanks to our [contributors](https://github.com/LeetCode-OpenSource/vscode-leetcode/blob/master/ACKNOWLEDGEMENTS.md).
- This extension is based on [@skygragon](https://github.com/skygragon)'s [leetcode-cli](https://github.com/skygragon/leetcode-cli) open source project.
- Special thanks to our [contributors](https://github.com/LeetCode-OpenSource/vscode-leetcode/blob/master/ACKNOWLEDGEMENTS.md).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"description": "The path of the workspace folder to store the problem files.",
"default": ""
},
"leetcode.filePath": {
"type": "object",
"scope": "application",
"description": "The output folder and filename to save the problem files.",
"properties": {
"default": {
Expand DownExpand Up
@@ -642,7 +629,6 @@
"leetcode.enableStatusBar": {
"type": "boolean",
"default": true,
"scope": "application",
"description": "Show the LeetCode status bar or not."
},
"leetcode.editor.shortcuts": {
Expand All
@@ -651,7 +637,6 @@
"submit",
"test"
],
"scope": "application",
"items": {
"type": "string",
"enum": [
Expand All
@@ -674,25 +659,21 @@
"leetcode.enableSideMode": {
"type": "boolean",
"default": true,
"scope": "application",
"description": "Determine whether to group all webview pages into the second editor column when solving problems."
},
"leetcode.nodePath": {
"type": "string",
"default": "node",
"scope": "application",
"description": "The Node.js executable path. for example, C:\\Program Files\\nodejs\\node.exe"
},
"leetcode.colorizeProblems": {
"type": "boolean",
"default": true,
"scope": "application",
"description": "Add difficulty badge and colorize problems files in explorer tree."
},
"leetcode.problems.sortStrategy": {
"type": "string",
"default": "None",
"scope": "application",
"enum": [
"None",
"Acceptance Rate (Ascending)",
Expand All
@@ -703,7 +684,6 @@
"leetcode.allowReportData": {
"type": "boolean",
"default": true,
"scope": "application",
"description": "Allow LeetCode to report anonymous usage data to improve the product."
}
}
Expand Down
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.