Skip to content

VS Code Switch between Editor and Terminal

VS Code Switch between Editor and Terminal

Let’s say you’re using the Editor and the Terminal at the same time.

To switch between them, you need to click, which isn’t the quickest nor the most efficient method.

That’s why in this article, I’ll show you how to switch between the Editor and the Terminal using keyboard shortcuts.

🎥 Prefer a video guide instead? Check this out:


Set up the keybindings

Open the keybindings.json file usually located at C:\Users\<YourUser>\AppData\Roaming\Code\User\keybindings.json

Every keybind we define here will override the default ones. So keep this in mind.

Paste this code into keybindings.json file:

The settings are pretty straightforward, but let’s go through them anyway:

The command workbench.action.terminal.focus is used to select the Terminal with CTRL + R + (Arrow) Down

Similarly, the command workbench.action.focusActiveEditorGroup is used to select the Editor with CTRL + (Arrow) Up only when the Terminal is focused.

It goes without saying that you can use any other keybindings as you prefer.


Let me know what you think about this article in the comments section below.

If you find this article helpful, please share it with others and subscribe to the blog to support me, and receive a bi-monthly-ish e-mail notification on my latest articles.   
  

Comments