The configuration method is as follows:
- Enter command+shift+p in vscode to open the command panel;
- Enter Shell Command;
- At this point, there will be a prompt "Shell Command: Install 'code' command in PATH", just run it;
- Close vscode, enter directly in the terminal
code .
, then open vscode.