Switch between VS Code Terminal windows

VS Code allows us to use multiple terminal windows at a time and given dropdown to switch windows. But no keyboard shortcut. Sometimes we if any keyboard shortcut is there, it will very easy. Mainly if different tasks keep running in different windows like MEAN.

Fortunately, there are commands for going to the next and previous terminal which can be attached to keybindings.

Press Ctrl+Shift+p and type keyboard
VS Code preferances
and select “Preferences: Open Keyboard Shortcuts (JSON)”

It open VS Code Default Keybinding mapping JSON file and one more JSON file window for customizing the shortcuts.

Place the following entry to there.

    { "key": "cmd+shift+k", "command": "workbench.action.terminal.focusNext" },
    { "key": "cmd+shift+j", 
      "command": "workbench.action.terminal.focusPrevious" }

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s