Search code examples
visual-studio-codeterminalideeditorkeyboard-shortcuts

How to switch between terminals in Visual Studio Code?


I'm looking to switch between terminals open in visual studio code.

With this "Switch focus between editor and integrated terminal in Visual Studio Code" question I correctly setup the focus, but I would like to switch between terminals, not only from code to terminal.

Is there a way to do it?


Solution

  • As of Release 1.56.0, there is inbuilt support for switching terminals in VS Code:

    New keybindings

    The terminal has several new default keybindings this release:

    1. Move to previous terminal - Ctrl+PageUp (macOS Cmd+Shift+])
    2. Move to next terminal - Ctrl+PageDown (macOS Cmd+shift+[)
    3. Focus terminal tabs view - Ctrl+Shift+\ (macOS Cmd+Shift+\) - Terminal tabs preview

    As always, these default keybindings can be removed or custom keybindings can be added via the keybindings system.