Skip to content

Instantly share code, notes, and snippets.

@franzwarning
Last active November 18, 2024 22:00
Show Gist options
  • Save franzwarning/489b4ea4935032642f90bf3d41a4e458 to your computer and use it in GitHub Desktop.
Save franzwarning/489b4ea4935032642f90bf3d41a4e458 to your computer and use it in GitHub Desktop.
vscode shortcuts
// Place your key bindings in this file to override the defaults
[
{
"key": "ctrl+shift+r",
"command": "-continue.debugTerminal"
},
{
"key": "ctrl+alt+r",
"command": "remote-wsl.revealInExplorer",
"when": "editorFocus && remoteName == 'wsl'"
},
{
"key": "shift+alt+r",
"command": "-remote-wsl.revealInExplorer",
"when": "editorFocus && remoteName == 'wsl'"
},
{
"key": "ctrl+alt+r",
"command": "revealFileInOS",
"when": "!editorFocus"
},
{
"key": "shift+alt+r",
"command": "-revealFileInOS",
"when": "!editorFocus"
},
{
"key": "ctrl+shift+r",
"command": "workbench.files.action.showActiveFileInExplorer"
},
{
"key": "ctrl+1",
"command": "workbench.action.openEditorAtIndex1"
},
{
"key": "alt+1",
"command": "-workbench.action.openEditorAtIndex1"
},
{
"key": "ctrl+2",
"command": "workbench.action.openEditorAtIndex2"
},
{
"key": "alt+2",
"command": "-workbench.action.openEditorAtIndex2"
},
{
"key": "ctrl+3",
"command": "workbench.action.openEditorAtIndex3"
},
{
"key": "alt+3",
"command": "-workbench.action.openEditorAtIndex3"
},
{
"key": "ctrl+4",
"command": "workbench.action.openEditorAtIndex4"
},
{
"key": "alt+4",
"command": "-workbench.action.openEditorAtIndex4"
},
{
"key": "ctrl+5",
"command": "workbench.action.openEditorAtIndex5"
},
{
"key": "alt+5",
"command": "-workbench.action.openEditorAtIndex5"
},
{
"key": "ctrl+6",
"command": "workbench.action.openEditorAtIndex6"
},
{
"key": "alt+6",
"command": "-workbench.action.openEditorAtIndex6"
},
{
"key": "ctrl+7",
"command": "workbench.action.openEditorAtIndex7"
},
{
"key": "alt+7",
"command": "-workbench.action.openEditorAtIndex7"
},
{
"key": "ctrl+shift+]",
"command": "workbench.action.nextEditor"
},
{
"key": "ctrl+pagedown",
"command": "-workbench.action.nextEditor"
},
{
"key": "ctrl+shift+[",
"command": "workbench.action.previousEditor"
},
{
"key": "ctrl+pageup",
"command": "-workbench.action.previousEditor"
},
{
"key": "ctrl+shift+e",
"command": "-workbench.view.explorer",
"when": "viewContainer.workbench.view.explorer.enabled"
},
{
"key": "shift+alt+right",
"command": "-editor.action.smartSelect.expand",
"when": "editorTextFocus"
},
{
"key": "shift+alt+right",
"command": "cursorWordEndRightSelect",
"when": "textInputFocus && !accessibilityModeEnabled"
},
{
"key": "shift+alt+left",
"command": "-editor.action.smartSelect.shrink",
"when": "editorTextFocus"
},
{
"key": "shift+alt+left",
"command": "cursorWordLeftSelect",
"when": "textInputFocus && !accessibilityModeEnabled"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment