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:
- Go to: File > Preferences > keyboard shortcuts
- Then in the search-bar, search for
focus terminal - Select
workbench.action.terminal.focusand then CTRL+k or press your custom key and then press enter. - Similarly, in the search-bar search for
focus active editor group - Select
workbench.action.focusActiveEditorGroupand 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