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

后端 未结 3 2000
别跟我提以往
别跟我提以往 2021-02-07 22:13

I looked at this link which talks about changing the default command shell in the integrated terminal of Visual Studio Code. I was successfully able to change it to Git Bash usi

3条回答
  •  礼貌的吻别
    2021-02-07 22:51

    In recent version (1.15.0) you can

    • change the settings, then run the terminal, you've set
    • then change the settings again and run the another type of terminal by pressing the + sign
    • and so on...

    You can put this in your settings file, and uncomment which one you need.

    // 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"
    

提交回复
热议问题