Visual Studio Code 终端的不同选择

Visual Studio Code 终端可以进行设置,选择使用 cmd,PowerShell, Git Bash, Bash on Ubuntu(on Windows),下面是settings.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,就没这个必要了。

你可能感兴趣的:(编程,Windows,Visual,Studio,Code)