在vscode里使用快捷键如下
Open the Command Palette via (⇧⌘P)
在弹出框中输入命令如下
shell command
重启vscode
After executing the command, restart the terminal for the new $PATH value to take effect. You’ll be able to simply type ‘code .’ in any folder to start editing files in that folder. The “.” Simply means “current directory”