Visual Studio Code 终端的不同选择

版权声明:本文为博主(SimonLiu)原创文章,未经博主允许不得转载。 https://blog.csdn.net/toopoo/article/details/85246094

Visual Studio Code 终端可以进行设置,选择使用 cmd,PowerShell, Git Bash, Basn on Ubuntu(on Windows),下面是json的选1项,选择其中一个就好了:

1. CMD

// 64-bit cmd if available, otherwise 32-bit
"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\cmd.exe"

2. PowerShell
// 64-bit PowerShell if available, otherwise 32-bit
"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe"

3. Git Bash
// Git Bash
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe"

4. Ubuntu Bash
// Bash on Ubuntu (on Windows)
"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\bash.exe"

其实掌握了这个方法,你也可以设置为cygwin Bash,不过如果你有了Ubuntu Bash,就没这个必要了。

猜你喜欢

转载自blog.csdn.net/toopoo/article/details/85246094
今日推荐