Solve LeetCode problems in VsCode and keep your submissions in sync with your Ultimate LeetCode Tracker template in notion
- VS Code 1.30.1+
- Node.js 10+
NOTE: Please make sure that
Node
is in yourPATH
environment variable. You can also use the settingleetnotion.nodePath
to specify the location of yourNode.js
executable.
To get started using this, you can get the Ultimate LeetCode Tracker template from here. Feel free to duplicate it into your own Notion workspace!
In addition to all the features of the original LeetCode extension, LeetNotion offers:
Displays the LeetCode Problem of the Day directly in the VS Code sidebar, keeping you engaged with daily practice.
Access popular problem sets, such as NeetCode sheets, LeetCode study sheets, and grokking coding interview pattern directly in vscode, for a more targeted learning experience.
View all past contests and their leetcode problems
Automatically collects one LeetCode coin every day by checking in, so you wonโt miss out on daily rewards.
If available, automatically collects 10 LeetCode coins by collecting the leetcode easter egg.
When you successfully submit a solution, LeetNotion updates your Notion template with the problemโs status, submission code.
You can import and sync all past submissions to your Notion template, allowing you to track your progress comprehensively.
After each submission, it allows you to set additional properties in Notion, such as adding personal notes, marking the solution as optimal, adding custom tags, and setting a review date to revisit the problem later.
You can automatically add new problems and update information on all problems in your Notion template with a single command, keeping your tracker organized and up-to-date.
Below are the features of original leetcode vscode extension
-
Simply click
Sign in to LeetCode
in theLeetCode Explorer
will let you sign in with your LeetCode account. -
You can also use the following command to sign in/out:
- Leetnotion: Sign in
- Leetnotion: Sign out
-
By clicking the button
at the explorer's navigation bar, you can switch between different endpoints.
-
The supported endpoints are:
- 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.
-
Directly click on the problem or right click the problem in the
LeetCode Explorer
and selectPreview 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
leetnotion.workspaceFolder
. The default value is๏ผ$HOME/.leetcode/.You can specify whether including the problem description in comments or not by updating the setting
leetnotion.showCommentDescription
.You can switch the default language by triggering the command:
LeetCode: Switch Default Language
.
-
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.
Note: You can customize the shortcuts using the setting:
leetnotion.editor.shortcuts
. By default, onlySubmit
andTest
shortcuts are enabled.
Setting Name | Description | Default Value |
---|---|---|
leetnotion.hideSolved |
Specify to hide the solved problems or not | false |
leetnotion.defaultLanguage |
Specify the default language used to solve the problem. Supported languages are: bash , c , cpp , csharp , golang , java , javascript , kotlin , mysql , php , python ,python3 ,ruby ,rust , scala , swift , typescript |
N/A |
leetnotion.useWsl |
Specify whether to use WSL or not | false |
leetnotion.endpoint |
Specify the active endpoint. Supported endpoints are: leetcode , leetcode-cn |
leetcode |
leetnotion.workspaceFolder |
Specify the path of the workspace folder to store the problem files. | "" |
leetnotion.filePath |
Specify the relative path under the workspace and the file name to save the problem files. More details can be found here. | |
leetnotion.enableStatusBar |
Specify whether the LeetCode status bar will be shown or not. | true |
leetnotion.editor.shortcuts |
Specify the customized shortcuts in editors. Supported values are: submit , test , star , solution and description . |
["submit, test"] |
leetnotion.enableSideMode |
Specify whether preview , solution and submission tab should be grouped into the second editor column when solving a problem. |
true |
leetnotion.nodePath |
Specify the Node.js executable path. for example, C:\Program Files\nodejs\node.exe |
node |
leetnotion.showCommentDescription |
Specify whether to include the problem description in the comments | false |
leetnotion.useEndpointTranslation |
Use endpoint's translation (if available) | true |
leetnotion.colorizeProblems |
Add difficulty badge and colorize problems files in explorer tree | true |
leetnotion.problems.sortStrategy |
Specify sorting strategy for problems list | None |
leetnotion.allowReportData |
Allow LeetCode to report anonymous usage data to improve the product. list | false |
leetnotion.enableNotionIntegration |
Enable notion integration to sync with your notion template. | true |
leetnotion.addCodeToSubmissionPage |
Add code to your problem submission page in notion which is created after a successful submission. | true |
leetnotion.companies.sortStrategy |
Sorting strategy for companies. | Popularity |
leetnotion.language.header |
A custom header added to each solution file for the selected language. | |
leetnotion.language.footer |
A custom footer added to each solution file for the selected language. | |
leetnotion.changeStatusWhenUploadingSubmissions |
Change status of problem when uploading existing submissions to the template. | true |
When you meet any problem, you can check out the Troubleshooting and FAQ first.
LeetNotion builds upon the fantastic work of the open-source LeetCode VS Code extension. This project wouldnโt be possible without the foundation provided by the original developers. Thank you to the contributors of the LeetCode extension for their work and dedication in creating such a useful tool for the developer community.