在vscode中, 可以通过 Ctrl+反引号
快捷键来调出终端面板, 如下图:
其中的shell(上图右下圈红部分)是可以设置的,
在文件
-> 首选项
-> 设置
中打开, 在用户设置中添加如下配置项:
// "terminal.integrated.shell.windows": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
// "terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
"terminal.integrated.shell.windows": "D:\\soft\\git\\bin\\bash.exe"
- 1
- 2
- 3
powershell, cmd, 和bash(我这里安装了git, 所以可以如上设置)我都试过, 都可以用的.
这样一来, 就可以放弃难用的cmd了.
From: https://blog.csdn.net/butterfly5211314/article/details/78944805