Skip to content

lechuhuuha/Leetcode-vs-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

Leetcode-vs-code

Access LeetCode through VS Code step by step.

This guide is primarily for individuals who are unable to log in to LeetCode within VS Code using the repository https://github.com/LeetCode-OpenSource/vscode-leetcode.

If you encoutner the error after running the command

leetcode user -c

login: (node:5080) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created)

  1. Then go to this link to dowload the modified version https://marketplace.visualstudio.com/items?itemName=Adaex.vscode-leetcode&ssr=false#overview

  2. Install the extenstion

image

  1. After install the extension in vscode you log into leetcode.com in a browser. In Chrome, right click and select "Inspect". Switch to tab "Network", "XHR". Then click any button on leetcode.com(now should be on the left split screen). Now you should be able to see the cookie as showed in the pic.

image

Copy the two cookie csrf and LEETCODE_SESSION Like this example csrftoken="your-csrk-token"; LEETCODE_SESSION="you-leetcode-session";

  1. Click login using cookie in this image image

  2. Add you username or email you use to login in leetcode

  3. Paste your cookie in step 3

  4. Hit enter then wait a bit for the extenstion to work

Happy leetcoding!

About

Access leet code through vs code step by step

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published