How to add multiple terminals in VS Code?

前端 未结 11 2508
轻奢々
轻奢々 2020-11-30 17:15

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

  1. Windows Com
11条回答
  •  借酒劲吻你
    2020-11-30 17:58

    This can be done by adding a different key at the end. By just changing your example to:

    // // 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.windows2": "C:\\Windows\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe",
    // // Git Bash
     "terminal.integrated.shell.windows3": "C:\\Program Files\\Git\\bin\\bash.exe",
    

    Note that the key ...shell.windows is changed to ...shell.windows2 and ...shell.windows3.

    Follow-up finding: I've noticed that once restart of the IDE, only the first terminal gets displayed. I had to reopen the settings and save it once to get both the terminals again. Will post if any better solution available.

提交回复
热议问题