-
Notifications
You must be signed in to change notification settings - Fork 677
add: star command in shortcuts #601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,9 +90,10 @@ Thanks for [@yihong0618](https://github.com/yihong0618) provided a workaround wh | |
<img src="https://raw.githubusercontent.com/LeetCode-OpenSource/vscode-leetcode/master/docs/imgs/shortcuts.png" alt="Editor Shortcuts" /> | ||
</p> | ||
|
||
- The extension supports 4 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. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: unstar |
||
- `Solution`: Show the top voted solution for the current problem. | ||
- `Description`: Show the problem description page. | ||
|
||
|
@@ -128,7 +129,7 @@ Thanks for [@yihong0618](https://github.com/yihong0618) provided a workaround wh | |
| `leetcode.workspaceFolder` | Specify the path of the workspace folder to store the problem files. | `""` | | ||
| `leetcode.filePath` | Specify the relative path under the workspace and the file name to save the problem files. More details can be found [here](https://github.com/LeetCode-OpenSource/vscode-leetcode/wiki/Customize-the-Relative-Folder-and-the-File-Name-of-the-Problem-File). | | | ||
| `leetcode.enableStatusBar` | Specify whether the LeetCode status bar will be shown or not. | `true` | | ||
| `leetcode.editor.shortcuts` | Specify the customized shorcuts in editors. Supported values are: `submit`, `test`, `solution` and `description`. | `["submit, test"]` | | ||
| `leetcode.editor.shortcuts` | Specify the customized shorcuts in editors. Supported values are: `submit`, `test`, `star`, `solution` and `description`. | `["submit, test"]` | | ||
| `leetcode.enableSideMode` | Specify whether `preview`, `solution` and `submission` tab should be grouped into the second editor column when solving a problem. | `true` | | ||
| `leetcode.nodePath` | Specify the `Node.js` executable path. for example, C:\Program Files\nodejs\node.exe | `node` | | ||
| `leetcode.showCommentDescription` | Specify whether to include the problem description in the comments | `false` | | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -629,6 +629,7 @@ | |
"enum": [ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you by the way add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed, and optimize star logic. |
||
"submit", | ||
"test", | ||
"star", | ||
"solution", | ||
"description" | ||
] | ||
|