Last active
June 25, 2022 09:03
-
-
Save janjaali/e82cee61ab987241159a7201623282b4 to your computer and use it in GitHub Desktop.
VS Code Keybindings (Windows)
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
[ | |
// workbench.action.nextEditor (alt+right) | |
{ | |
"key": "alt+right", | |
"command": "-workbench.action.navigateForward" | |
}, | |
{ | |
"key": "alt+right", | |
"command": "-gitlens.key.alt+right", | |
"when": "gitlens:key:alt+right" | |
}, | |
{ | |
"key": "ctrl+pagedown", | |
"command": "-workbench.action.nextEditor" | |
}, | |
{ | |
"key": "alt+right", | |
"command": "workbench.action.nextEditor" | |
}, | |
// workbench.action.previousEditor (alt+left) | |
{ | |
"key": "ctrl+pageup", | |
"command": "-workbench.action.previousEditor" | |
}, | |
{ | |
"key": "alt+left", | |
"command": "-workbench.action.navigateBack" | |
}, | |
{ | |
"key": "alt+left", | |
"command": "-gitlens.key.alt+left", | |
"when": "gitlens:key:alt+left" | |
}, | |
{ | |
"key": "alt+left", | |
"command": "-workbench.action.quickInputBack", | |
"when": "inQuickOpen" | |
}, | |
{ | |
"key": "alt+left", | |
"command": "workbench.action.previousEditor" | |
}, | |
// editor.fold (ctrl+oem_minus) | |
{ | |
"key": "ctrl+shift+oem_4", | |
"command": "-editor.fold", | |
"when": "editorTextFocus && foldingEnabled" | |
}, | |
{ | |
"key": "ctrl+oem_minus", | |
"command": "-workbench.action.zoomOut" | |
}, | |
{ | |
"key": "ctrl+oem_minus", | |
"command": "editor.fold" | |
}, | |
// editor.foldAll (ctrl+oem_minus) | |
{ | |
"key": "ctrl+k ctrl+0", | |
"command": "-editor.foldAll", | |
"when": "editorTextFocus && foldingEnabled" | |
}, | |
{ | |
"key": "ctrl+shift+oem_minus", | |
"command": "-workbench.action.zoomOut" | |
}, | |
{ | |
"key": "ctrl+shift+oem_minus", | |
"command": "editor.foldAll" | |
}, | |
// editor.unfold (ctrl+oem_plus) | |
{ | |
"key": "ctrl+shift+oem_6", | |
"command": "-editor.unfold", | |
"when": "editorTextFocus && foldingEnabled" | |
}, | |
{ | |
"key": "ctrl+oem_plus", | |
"command": "-workbench.action.zoomIn" | |
}, | |
{ | |
"key": "ctrl+oem_plus", | |
"command": "editor.unfold" | |
}, | |
// editor.unfoldAll (shift+ctrl+oem_plus) | |
{ | |
"key": "ctrl+k ctrl+j", | |
"command": "-editor.unfoldAll", | |
"when": "editorTextFocus && foldingEnabled" | |
}, | |
{ | |
"key": "ctrl+shift+oem_plus", | |
"command": "-workbench.action.zoomIn" | |
}, | |
{ | |
"key": "ctrl+shift+oem_plus", | |
"command": "editor.unfoldAll" | |
}, | |
// workbench.action.terminal.toggleTerminal (alt+t) | |
{ | |
"key": "ctrl+oem_3", | |
"command": "-workbench.action.terminal.toggleTerminal", | |
"when": "terminal.active" | |
}, | |
{ | |
"key": "alt+t", | |
"command": "workbench.action.terminal.toggleTerminal" | |
}, | |
// Copy Copy Paste: History (ctrl+shift+v) | |
{ | |
"key": "ctrl+shift+v", | |
"command": "-markdown-preview-enhanced.openPreview", | |
"when": "editorLangId == 'markdown'" | |
}, | |
{ | |
"key": "ctrl+shift+v", | |
"command": "-markdown.showPreview", | |
"when": "!notebookEditorFocused && editorLangId == 'markdown'" | |
}, | |
{ | |
"key": "ctrl+shift+v", | |
"command": "-notebook.cell.pasteAbove", | |
"when": "notebookEditorFocused && !inputFocus" | |
}, | |
{ | |
"key": "ctrl+shift+v", | |
"command": "-workbench.action.terminal.paste", | |
"when": "terminalFocus && terminalProcessSupported" | |
}, | |
// workbench.view.explorer (shift+alt+e) | |
{ | |
"key": "ctrl+shift+e", | |
"command": "-workbench.view.explorer", | |
"when": "viewContainer.workbench.view.explorer.enabled" | |
}, | |
{ | |
"key": "shift+alt+e", | |
"command": "-PowerShell.ExpandAlias", | |
"when": "editorTextFocus && editorLangId == 'powershell'" | |
}, | |
{ | |
"key": "shift+alt+e", | |
"command": "workbench.view.explorer" | |
}, | |
// workbench.action.terminal.clear (ctrl+k when terminalFocus) | |
{ | |
"key": "ctrl+k", | |
"command": "workbench.action.terminal.clear", | |
"when": "terminalFocus" | |
}, | |
// disable: github.copilot.generate (ctrl+enter) | |
{ | |
"key": "ctrl+enter", | |
"command": "-github.copilot.generate", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+enter", | |
"command": "-github.copilot.generate", | |
"when": "editorTextFocus && github.copilot.activated" | |
}, | |
// workbench.action.navigateBack (ctrl+alt+left) | |
{ | |
"key": "ctrl+alt+left", | |
"command": "-workbench.action.moveEditorToPreviousGroup" | |
}, | |
{ | |
"key": "ctrl+alt+left", | |
"command": "workbench.action.navigateBack" | |
}, | |
// workbench.action.navigateForward (ctrl+alt+right) | |
{ | |
"key": "ctrl+alt+right", | |
"command": "-workbench.action.moveEditorToNextGroup" | |
}, | |
{ | |
"key": "ctrl+alt+right", | |
"command": "workbench.action.navigateForward" | |
}, | |
// Metals: Run tests | |
{ | |
"key": "ctrl+r t", | |
"command": "metals.run-current-file" | |
}, | |
{ | |
"key": "ctrl+r a", | |
"command": "metals.test-current-target" | |
}, | |
// Sidebar: Toggle visibility | |
{ | |
"key": "ctrl+b", | |
"command": "-workbench.action.toggleSidebarVisibility" | |
}, | |
{ | |
"key": "ctrl+e", | |
"command": "-workbench.action.quickOpen" | |
}, | |
{ | |
"key": "ctrl+e", | |
"command": "workbench.action.toggleSidebarVisibility" | |
}, | |
// Explorer: Focus on Folders View | |
{ | |
"key": "ctrl+k e", | |
"command": "-workbench.files.action.focusOpenEditorsView", | |
"when": "workbench.explorer.openEditorsView.active" | |
}, | |
{ | |
"key": "alt+e", | |
"command": "workbench.explorer.fileView.focus" | |
}, | |
{ | |
"key": "alt+e", | |
"command": "workbench.action.toggleSidebarVisibility", | |
"when": "filesExplorerFocus" | |
}, | |
{ | |
"key": "escape", | |
"command": "workbench.action.focusActiveEditorGroup", | |
"when": "filesExplorerFocus" | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment