Install the leetcode extension in VS Code
Login to LeetCode endpoint with cookie
- Login to leetcode from Google Chrome
- In Chrome, Inspect -> Network -> Fetch/XHR
- Click on any button in leetcode page, and in Inspector to the right under the "Name" tab find and select bottom "graphql" and under Headers tab and in "Request Headers" portion, select and copy the entire cookie string starting from "__cfduid" and ending with "_gat=1"
- Paste the cookie string in VS Code leetcode login prompt.
Enjoy coding in VS Code