Answer a question

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?

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.

Logo

开发云社区提供前沿行业资讯和优质的学习知识,同时提供优质稳定、价格优惠的云主机、数据库、网络、云储存等云服务产品

更多推荐