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?
Now you can use CTRL + SHIFT + p followed by ENTER to toggle between terminal and the text editor as long as that command is the last used in the command palette.
Go to File → Preferences → Keyboard Shortcuts or just press Ctrl + k + Ctrl + s.
Then click the icon in upper right corner, it opens keybindings.json
file:
Try adding the following two entries to this file:
{ "key": "ctrl+pagedown", "command": "workbench.action.terminal.focusNext", "when": "terminalFocus" }, { "key": "ctrl+pageup", "command": "workbench.action.terminal.focusPrevious", "when": "terminalFocus" }
Note: On Mac change ctrl to cmd
Looking deeply I found it:
{ "key": "shift+cmd+]", "command": "workbench.action.terminal.focusNext", "when": "terminalFocus" }
:)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With