https://github.com/cmderdev/cmder/wiki/Seamless-VS-Code-Integration
//setting.json
"terminal.integrated.shell.windows": "cmd.exe",
"terminal.integrated.env.windows": {
"CMDER_ROOT": "[cmder_root]"
},
"terminal.integrated.shellArgs.windows": [
"/k",
"%CMDER_ROOT%\\\\vendor\\\\bin\\\\vscode_init.cmd"
],
ctrl+shift+p 打开命令窗口
Preferences: Open Settings (JSON) 输入打开setting.json 文件的命令(一部分就行)
添加以下内容:
// terminal cmder
"terminal.integrated.shell.windows": "cmd.exe",
"terminal.integrated.shellArgs.windows": ["/k D:\\apps\\cmder\\vendor\\init.bat"]
cmd /k path (执行完路径指定的脚本后不关闭窗口)
另, 打开终端快捷键 ctrl+`