[VScode installs Leetcode brushing plug-in and configuration]

1. Install the plug-in

insert image description here

2. After installation, click

insert image description here

3. Switch to China

insert image description here

4. Log in to the Leetcode account in vscode (login using cookies)

  1. First go to leetcode official website to check your account and cookie
    insert image description here
    insert image description here
  2. Complete the information, especially the email address, mobile phone number, and reset the password

insert image description here

  1. Right-click the mouse on the Leetcode website and click Check:

insert image description here
produces a page like this:
insert image description here

insert image description here

  1. Find the cookie value and copy it:

insert image description here
PS: If you click Fetch/XHR and do not find all.json below, just click the question bank on the left to refresh.

  1. 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:
    insert image description here
    enter the user name or email address,
    insert image description here
    enter the copied cookie value
    insert image description here
    , and complete, the red box appears on the left:
    insert image description here

Modify the path of the leetcode topic

Open the first question, click the code now in the lower right corner,
insert image description here
select the language java
insert image description here
, and then select Just Open The problem file
insert image description here

The following interface appears, and we found that the path of the title is in the c drive:
insert image description here
we modify this path to another drive:

  1. open settings

insert image description here

  1. Enter leetcode.workspaceFolder, modify the following path
    insert image description here
    PS: Shortcut modification
    insert image description here
    also enter leetcode.editor.shortcuts, click Add Item, select submit
    insert image description here
    Reference: https://www.cnblogs.com/techflow/p/12590795.html

Guess you like

Origin blog.csdn.net/Mason_Chen/article/details/123952380