How to add multiple terminal in VS Code?

2019-01-13 10:48发布

Can we add multiple different terminal in VS Code? I am planing to add following three terminal and work with all of those

  1. Windows Command prompt
  2. PowerShell
  3. Git Bash

I know I need to add following command in Preferences => Setting

 // // 64-bit cmd if available, otherwise 32-bit
 "terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\cmd.exe",
// // 64-bit PowerShell if available, otherwise 32-bit
 "terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe",
// // Git Bash
 "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",

I want to add all of above three command in setting.json enter image description here And when I click + different terminal should open and I want to work with those terminal without changing the preferences. Is it possible in VS Code or not?

7条回答
欢心
2楼-- · 2019-01-13 11:36

press ctrl + shift + ` shortcut, or press a cross sign to run new terminal, then type bash if your default mode is powershell or powershell if your default mode is bash. And here you are, your terminal is switched.

查看更多
登录 后发表回答