How to choose a different type of shell in the integrated Visual Studio Code terminal

I looked at this link, which talks about changing the default shell in the integrated Visual Studio Code Terminal. I managed to change it to Git Bash using the setting in the file below settings.json. You can open the file settings.jsonby pressing the key combination Ctrl+ ,or the menu File → Settings → Settings menu:

{
   "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe"
}

There is a sign in the integrated terminal +with which you can have several terminals working in parallel, as shown in the screenshot below:

Enter image description here

I want to load the Git Bash shell into terminal No. 1, Windows PowerShell into terminal No. 2, etc. Which appropriate configuration does the same?

+5
3

2018-06-17, Visual Studio , . :

  1. . . , , Bash, PowerShell. powershell, Enter, PowerShell. , .
  2. - Ctrl + Shift + '(back-tick). , , .
  3. . F1 Visual Studio " Terminal: Select Default Shell .

Terminal selection

, :

Terminal selection

0

(1.15.0)

  • , ,
  • , +
  • ..

, .

// 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"
// Bash on Ubuntu (on Windows)
//"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\bash.exe"
+2

. Shell Launcher, , ctrl-shift-t , VS.

Screenshot of Shell Launcher and settings

0
source

Source: https://habr.com/ru/post/1678750/


All Articles