VS Code Key Binding for quick switch between terminal screens?

后端 未结 4 2017
鱼传尺愫
鱼传尺愫 2021-01-31 02:46

I\'m trying to figure out if there is a way to set up a key binding to allow a quick switch between the terminal windows I have open in the built in terminal rather than having

4条回答
  •  粉色の甜心
    2021-01-31 03:14

    If you want something that might feel a bit more fluid than using arbitrary key bindings, you can get Ctrl+Tab and Ctrl+Shift+Tab working for both editor switching and terminal switching.

    Open your keybindings file with ctrl+shift+p search for Open Keyboard Shortcuts (JSON). Then add..

    { 
      "key": "ctrl+tab",            
      "command": "workbench.action.openNextRecentlyUsedEditorInGroup",
      "when": "editorFocus" 
    },
    { "key": "shift+ctrl+tab",      
      "command": "workbench.action.openPreviousRecentlyUsedEditorInGroup",
      "when": "editorFocus" 
    },
    {
      "key": "ctrl+tab",
      "command": "workbench.action.terminal.focusNext",
      "when": "terminalFocus"
    },
    {
      "key": "ctrl+shift+tab",
      "command": "workbench.action.terminal.focusPrevious",
      "when": "terminalFocus"
    }
    

提交回复
热议问题