1. Install the plug-in
2. After installation, click
3. Switch to China
4. Log in to the Leetcode account in vscode (login using cookies)
- First go to leetcode official website to check your account and cookie
- Complete the information, especially the email address, mobile phone number, and reset the password
- Right-click the mouse on the Leetcode website and click Check:
produces a page like this:
- Find the cookie value and copy it:
PS: If you click Fetch/XHR and do not find all.json below, just click the question bank on the left to refresh.
- Re-open vscode, open the leetcode plug-in, and select sign in. This time, when selecting the login method, we choose to use cookie login:
enter the user name or email address,
enter the copied cookie value
, and complete, the red box appears on the left:
Modify the path of the leetcode topic
Open the first question, click the code now in the lower right corner,
select the language java
, and then select Just Open The problem file
The following interface appears, and we found that the path of the title is in the c drive:
we modify this path to another drive:
- open settings
- Enter leetcode.workspaceFolder, modify the following path
PS: Shortcut modification
also enter leetcode.editor.shortcuts, click Add Item, select submit
Reference: https://www.cnblogs.com/techflow/p/12590795.html