Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I switch terminals in Visual Studio code using a keyboard shortcut?

I would like to be able to switch between terminal panes in VSCode using a keyboard shortcut. I am on a Mac.

I have opened keyboard shortcuts (Commandkey+K, Commandkey+S) and found the workbench.action.terminal.focusNextPane setting:
enter image description here

where it states quite clearly what the keyboard shortcut should be (option+command+downarrow or option+command+leftarrow) but neither of those work. They DO work when focus is in the editor and I want to switch between panes there, but not working when the focus in the terminal.

Not sure what I'm doing wrong but I hope I'm missing something obvious. Can anyone explain?

like image 814
jamiet Avatar asked Aug 07 '26 15:08

jamiet


1 Answers

The commands you are looking at (Terminal: Focus Next Pane and Terminal: Focus Previous Pane) are to switch between split terminal panes.

The commands to switch between terminals are:

Terminal: Focus Next Terminal
  workbench.action.terminal.focusNext

Terminal: Focus Previous Terminal
  workbench.action.terminal.focusPrevious

both of which are unbound by default.

like image 198
Mark Avatar answered Aug 10 '26 18:08

Mark



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!