Visual Studio Code 終端的不同選擇
阿新 • • 發佈:2019-01-14
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,就沒這個必要了。