- 先将visual studio code 的安装目录(有着
code.exe的文件)添加到环境变量Path中
2.使用一下命令:
code -- opens Visual Studio Code
code . -- opens current directory in Visual Studio Code
code somefile -- opens somefile in Visual Studio Code3.如果想从vsc中打开目录所在的命令行窗口,使用ctrl + Shift + P搜索command,找到open new command prompt,回车即可。
【update:如果想打开visual studio code的集成终端,使用命令ctr+shift+`】