Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code - Add option(s) in 'select default shell' list on Windows?

I want to use various shells in VSCode terminal, eg. Git Bash. I can set it in settings.json with terminal.integrated.shell.windows, but if I select CMD as default subsequently, that setting will get replaced. And if I add another terminal.integrated.shell.windows to bash.exe, I'm stuck with bash, can't change default shell, seems logical anyway if VSCode only replaces the 1st setting, but read the last same setting value.

The problem is there's no Bash existed in the "select default shell" list, and my question is how to add that?

I have installed latest (2.22.0) 64-bit version of Git for Windows, and hoped it would add the necessary env/reg etc for that, but no.

Even though this should be version independent, nevertheless here's my VSCode About:

Version: 1.35.1 (user setup)

Commit: c7d83e57cd18f18026a8162d042843bda1bcf21f

Date: 2019-06-12T14:30:02.622Z

Electron: 3.1.8

Chrome: 66.0.3359.181

Node.js: 10.2.0

V8: 6.6.346.32

OS: Windows_NT x64 10.0.10240

Please. I know there are similar questions, but they don't really solve my problem. However, the correct answer to my question will solve theirs.

like image 270
wez Avatar asked Jul 03 '19 10:07

wez


1 Answers

enter image description here If your question is how to add more terminal shells to Terminal:Select Default Shell, I dont think thats easily possible.

But you can use Shell Launcher plugin to add more shells and launch them in your integrated terminal. Below is a screen shot where I added Julia to the list. enter image description here

Installation:

  1. Go to Extensions and add Shell launcher. enter image description here

  2. Go to settings(Ctrl+,) and search for Shell Launcher and edit for your platform. enter image description here

  3. Add your shell to the list enter image description here

  4. You can launch this by F1(Command Pallete) -> Shell Launcher enter image description here

like image 170
vincent mathew Avatar answered Nov 12 '22 15:11

vincent mathew