Created
January 30, 2024 18:53
-
-
Save henrycatalinismith/bec41e558cb33ba252f977c6ca308e11 to your computer and use it in GitHub Desktop.
VSCode Keybindings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"key": "cmd+up", | |
"when": "terminalFocus", | |
"command": "workbench.action.focusActiveEditorGroup" | |
}, | |
{ | |
"key": "cmd+right", | |
"when": "!terminalFocus", | |
"command": "workbench.action.terminal.toggleTerminal" | |
}, | |
{ | |
"key": "cmd+down", | |
"when": "!terminalFocus", | |
"command": "workbench.action.terminal.toggleTerminal" | |
}, | |
{ | |
"key": "cmd+left", | |
"when": "terminalFocus", | |
"command": "workbench.action.focusActiveEditorGroup" | |
}, | |
{ | |
"key": "cmd+t", | |
"when": "terminalFocus", | |
"command": "workbench.action.terminal.newInActiveWorkspace" | |
}, | |
{ | |
"key": "cmd+t", | |
"when": "terminalEditorFocus", | |
"command": "workbench.action.createTerminalEditor" | |
}, | |
{ | |
"key": "cmd+w", | |
"when": "terminalFocus", | |
"command": "workbench.action.terminal.kill" | |
}, | |
{ | |
"key": "cmd+w", | |
"when": "terminalEditorFocus", | |
"command": "workbench.action.terminal.killEditor" | |
}, | |
{ | |
"key": "cmd+n", | |
"when": "terminalEditorFocus", | |
"command": "workbench.action.createTerminalEditor" | |
}, | |
{ | |
"key": "ctrl+tab", | |
"command": "workbench.action.nextEditor" | |
}, | |
{ | |
"key": "ctrl+shift+tab", | |
"command": "workbench.action.previousEditor" | |
}, | |
{ | |
"key": "ctrl+tab", | |
"when": "terminalFocus", | |
"command": "workbench.action.terminal.focusNext" | |
}, | |
{ | |
"key": "ctrl+shift+tab", | |
"when": "terminalFocus", | |
"command": "workbench.action.terminal.focusPrevious" | |
}, | |
{ | |
"key": "ctrl+tab", | |
"when": "terminalEditorFocus", | |
"command": "workbench.action.nextEditor" | |
}, | |
{ | |
"key": "ctrl+shift+tab", | |
"when": "terminalEditorFocus", | |
"command": "workbench.action.previousEditor" | |
}, | |
{ | |
"key": "cmd+shift+left", | |
"when": "terminalFocus", | |
"command": "runCommands", | |
"args": { | |
"commands": [ | |
"workbench.action.togglePanel", | |
"workbench.action.terminal.moveToEditor", | |
"workbench.action.focusActiveEditorGroup" | |
] | |
} | |
}, | |
{ | |
"key": "cmd+shift+right", | |
"when": "terminalFocus", | |
"command": "runCommands", | |
"args": { | |
"commands": [ | |
"workbench.action.positionPanelRight", | |
"workbench.action.terminal.focus" | |
] | |
} | |
}, | |
{ | |
"key": "cmd+shift+down", | |
"when": "terminalFocus", | |
"command": "runCommands", | |
"args": { | |
"commands": [ | |
"workbench.action.positionPanelBottom", | |
"workbench.action.terminal.focus" | |
] | |
} | |
}, | |
{ | |
"key": "cmd+shift+up", | |
"when": "terminalFocus", | |
"command": "runCommands", | |
"args": { | |
"commands": [ | |
"workbench.action.togglePanel", | |
"workbench.action.terminal.moveToEditor", | |
"workbench.action.focusActiveEditorGroup" | |
] | |
} | |
}, | |
{ | |
"key": "cmd+shift+right", | |
"when": "terminalEditorFocus", | |
"command": "runCommands", | |
"args": { | |
"commands": [ | |
"workbench.action.terminal.moveToTerminalPanel", | |
"workbench.action.positionPanelRight" | |
] | |
} | |
}, | |
{ | |
"key": "cmd+shift+down", | |
"when": "terminalEditorFocus", | |
"command": "runCommands", | |
"args": { | |
"commands": [ | |
"workbench.action.terminal.moveToTerminalPanel", | |
"workbench.action.positionPanelBottom" | |
] | |
} | |
}, | |
{ | |
"key": "cmd+shift+right", | |
"when": "!terminalFocus && !terminalEditorFocus", | |
"command": "runCommands", | |
"args": { | |
"commands": [ | |
"workbench.action.positionPanelRight", | |
"workbench.action.focusActiveEditorGroup" | |
] | |
} | |
}, | |
{ | |
"key": "cmd+shift+down", | |
"when": "!terminalFocus && !terminalEditorFocus", | |
"command": "runCommands", | |
"args": { | |
"commands": [ | |
"workbench.action.positionPanelBottom", | |
"workbench.action.focusActiveEditorGroup" | |
] | |
} | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment