简体   繁体   中英

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:
在此处输入图像描述

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM