Quantcast
Channel: How to switch the cursor between terminal and code in VSCode? - Super User
Viewing all articles
Browse latest Browse all 17

Answer by Raja Parivesh for How to switch the cursor between terminal and code in VSCode?

$
0
0

I found bit hard to press CTRL+`. It also close the terminal when we press CTRL+'

So, I configured mine as following:

{"key": "ctrl+j","command": "workbench.action.focusActiveEditorGroup","when": "!terminalFocus"},{"key": "ctrl+k","command": "workbench.action.terminal.focus","when": "terminalFocus"}

Step to configure:

  1. Go to: File > Preferences > keyboard shortcuts
  2. Then in the search-bar, search for focus terminal
  3. Select workbench.action.terminal.focus and then CTRL+k or press your custom key and then press enter.
  4. Similarly, in the search-bar search for focus active editor group
  5. Select workbench.action.focusActiveEditorGroup and then press CTRL+j or press your custom key and then press enter.

After the above setup:

  • Press CTRL+k to focus cursor on terminal
  • Press CTRL+j to focus cursor on coding section without closing terminal

Viewing all articles
Browse latest Browse all 17

Trending Articles