Last active
February 11, 2017 19:29
-
-
Save ristomatti/416d935d9308defc88ba11362093d1f1 to your computer and use it in GitHub Desktop.
Visual Studio Code 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
[ | |
// Navigation | |
{ | |
"key": "alt+left", | |
"command": "workbench.action.navigateBack" | |
}, { | |
"key": "alt+right", | |
"command": "workbench.action.navigateForward" | |
}, { | |
"key": "alt+a", | |
"command": "workbench.action.showCommands" | |
}, { | |
"key": "ctrl+alt+h", | |
"command": "editor.action.referenceSearch.trigger", | |
"when": "editorTextFocus" | |
}, { | |
"key": "alt+a", | |
"command": "workbench.action.showCommands" | |
}, { | |
"key": "ctrl+q", | |
"command": "editor.action.showHover", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "shift+alt+b", | |
"command": "workbench.view.debug" | |
}, | |
{ | |
"key": "shift+alt+e", | |
"command": "workbench.view.explorer" | |
}, | |
{ | |
"key": "shift+alt+x", | |
"command": "workbench.view.extensions" | |
}, | |
{ | |
"key": "shift+alt+g", | |
"command": "workbench.view.git" | |
}, | |
{ | |
"key": "shift+alt+f", | |
"command": "workbench.view.search" | |
}, | |
{ | |
"key": "alt+\\", | |
"command": "workbench.action.terminal.toggleTerminal" | |
}, | |
// Open folder | |
{ | |
"key": "ctrl+alt+o", | |
"command": "workbench.action.files.openFolder" | |
}, | |
// Close/undo close windows | |
{ | |
"key": "ctrl+w", | |
"command": "workbench.action.closeWindow", | |
"when": "!editorIsOpen" | |
}, | |
{ | |
"key": "ctrl+shift+w", | |
"command": "workbench.action.reopenClosedEditor" | |
}, | |
// Comments | |
{ | |
"key": "ctrl+7", | |
"command": "editor.action.commentLine", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+shift+7", | |
"command": "editor.action.blockComment", | |
"when": "editorTextFocus" | |
}, | |
// Cursor movement | |
{ | |
"key": "shift+enter", | |
"command": "cursorEnd", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+escape", | |
"command": "editor.action.marker.next", | |
"when": "editorFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+,", | |
"command": "extension.aceJump", | |
"when": "editorTextFocus" | |
}, | |
// Multiple cursors | |
{ | |
"key": "ctrl+c", | |
"command": "removeSecondaryCursors", | |
"when": "editorTextFocus && editorHasMultipleSelections" | |
}, | |
// Expand selection | |
{ | |
"key": "alt+s", | |
"command": "editor.action.smartSelect.grow", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+shift+s", | |
"command": "editor.action.smartSelect.shrink", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+w", | |
"command": "expand_region", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+shift+w", | |
"command": "undo_expand_region", | |
"when": "editorTextFocus" | |
}, | |
// Editing | |
{ | |
"key": "ctrl+alt+l", | |
"command": "editor.action.formatDocument", | |
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+j", | |
"command": "editor.action.joinLines", | |
"when": "editorFocus && !editorReadonly" | |
}, | |
{ | |
"key": "alt+enter", | |
"command": "editor.action.insertLineBefore", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+shift+enter", | |
"command": "colonize.endline", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+shift+enter", | |
"command": "colonize.newline", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+d", | |
"command": "editor.action.addSelectionToNextFindMatch", | |
"when": "editorFocus" | |
}, | |
{ | |
"key": "shift+alt+d", | |
"command": "lafe.duplicateCode", | |
"when": "editorTextFocus" | |
}, | |
// Increment/decrement numbers (plusplus) | |
{ | |
"key": "ctrl+shift+=", | |
"command": "extension.increment", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+shift+-", | |
"command": "extension.decrement", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+shift+alt+=", | |
"command": "extension.incrementBy10", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+shift+alt+-", | |
"command": "extension.decrementBy10", | |
"when": "editorTextFocus" | |
}, | |
// Toggle sidebar | |
{ | |
"key": "ctrl+alt+s", | |
"command": "workbench.action.toggleSidebarPosition" | |
}, | |
{ | |
"key": "ctrl+escape", | |
"command": "workbench.action.toggleSidebarVisibility" | |
}, | |
// Bookmarks | |
{ | |
"key": "ctrl+alt+b", | |
"command": "bookmarks.toggle", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+alt+n", | |
"command": "bookmarks.jumpToNext", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+alt+p", | |
"command": "bookmarks.jumpToPrevious", | |
"when": "editorTextFocus" | |
}, | |
// Change editor focus | |
{ | |
"key": "alt+`", | |
"command": "workbench.action.previousEditor" | |
}, | |
{ | |
"key": "alt+/", | |
"command": "workbench.action.nextEditor" | |
}, | |
{ | |
"key": "alt+]", | |
"command": "workbench.action.previousEditor" | |
}, | |
{ | |
"key": "alt+'", | |
"command": "workbench.action.nextEditor" | |
}, | |
// Change group focus | |
{ | |
"key": "ctrl+alt+`", | |
"command": "workbench.action.focusPreviousGroup" | |
}, | |
{ | |
"key": "ctrl+alt+/", | |
"command": "workbench.action.focusNextGroup" | |
}, | |
{ | |
"key": "ctrl+alt+`", | |
"command": "workbench.action.focusPreviousGroup" | |
}, | |
{ | |
"key": "ctrl+alt+/", | |
"command": "workbench.action.focusNextGroup" | |
}, | |
// Move editor inside a group | |
{ | |
"key": "ctrl+`", | |
"command": "workbench.action.moveEditorLeftInGroup" | |
}, | |
{ | |
"key": "ctrl+/", | |
"command": "workbench.action.moveEditorRightInGroup" | |
}, | |
{ | |
"key": "ctrl+]", | |
"command": "workbench.action.moveEditorLeftInGroup" | |
}, | |
{ | |
"key": "ctrl+'", | |
"command": "workbench.action.moveEditorRightInGroup" | |
}, | |
// Move editor between groups | |
{ | |
"key": "alt+shift+`", | |
"command": "workbench.action.moveEditorToPreviousGroup", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+shift+/", | |
"command": "workbench.action.moveEditorToNextGroup", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+shift+`", | |
"command": "workbench.action.moveActiveEditorGroupLeft", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+shift+/", | |
"command": "workbench.action.moveActiveEditorGroupRight", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+shift+]", | |
"command": "workbench.action.moveEditorToPreviousGroup", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+shift+'", | |
"command": "workbench.action.moveEditorToNextGroup", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+shift+]", | |
"command": "workbench.action.moveActiveEditorGroupLeft", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+shift+'", | |
"command": "workbench.action.moveActiveEditorGroupRight", | |
"when": "editorTextFocus" | |
}, | |
// | |
// Leader (alt+space) shortcuts | |
// | |
// Split editor | |
{ | |
"key": "alt+space s", | |
"command": "workbench.action.splitEditor", | |
"when": "editorFocus" | |
}, | |
// Change language mode | |
{ | |
"key": "alt+space l", | |
"command": "workbench.action.editor.changeLanguageMode" | |
}, | |
// Toggle editor panels | |
{ | |
"key": "alt+space p", | |
"command": "workbench.action.togglePanel" | |
}, | |
{ | |
"key": "alt+space o", | |
"command": "workbench.action.toggleEditorGroupLayout" | |
}, | |
{ | |
"key": "alt+space b", | |
"command": "workbench.action.toggleStatusbarVisibility" | |
}, | |
{ | |
"key": "alt+space z", | |
"command": "workbench.action.toggleZenMode" | |
}, | |
// Side panel views | |
// { | |
// "key": "alt+space d", | |
// "command": "workbench.view.debug" | |
// }, | |
// { | |
// "key": "alt+space e", | |
// "command": "workbench.view.explorer" | |
// }, | |
// { | |
// "key": "alt+space x", | |
// "command": "workbench.view.extensions" | |
// }, | |
// { | |
// "key": "alt+space g", | |
// "command": "workbench.view.git" | |
// }, | |
// { | |
// "key": "alt+space f", | |
// "command": "workbench.view.search" | |
// }, | |
// Editor group maximize/even width | |
{ | |
"key": "alt+space =", | |
"command": "workbench.action.maximizeEditor", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+space shift+=", | |
"command": "workbench.action.evenEditorWidths", | |
"when": "" | |
}, | |
// Block selection (Quick and Simple Text Selection) | |
{ | |
"key": "alt+space /", | |
"command": "extension.selectSingleQuote", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+space shift+2", | |
"command": "extension.selectDoubleQuote", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+space 8", | |
"command": "extension.selectParenthesis", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+space 9", | |
"command": "extension.selectParenthesisOuter", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+space 7", | |
"command": "extension.selectCurlyBrackets", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+space 0", | |
"command": "extension.selectCurlyBracketsOuter", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+space shift+8", | |
"command": "extension.selectSquareBrackets", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+space shift+9", | |
"command": "extension.selectSquareBracketsOuter", | |
"when": "editorTextFocus" | |
}, | |
// Code Runner | |
{ | |
"key": "alt+space r", | |
"command": "code-runner.run" | |
}, | |
// File Utils | |
{ | |
"key": "alt+space f2", | |
"command": "fileutils.renameFile", | |
"category": "File", | |
"title": "Rename" | |
}, | |
{ | |
"key": "alt+space m", | |
"command": "fileutils.moveFile", | |
"category": "File", | |
"title": "Move" | |
}, | |
{ | |
"key": "alt+space d", | |
"command": "fileutils.duplicateFile", | |
"category": "File", | |
"title": "Duplicate" | |
}, | |
{ | |
"key": "alt+space del", | |
"command": "fileutils.removeFile", | |
"category": "File", | |
"title": "Delete" | |
}, | |
{ | |
"key": "alt+space n", | |
"command": "fileutils.newFile", | |
"category": "File", | |
"title": "New File Relative to Current View" | |
}, | |
{ | |
"key": "alt+space shift+n", | |
"command": "fileutils.newFileAtRoot", | |
"category": "File", | |
"title": "New File Relative to Project Root" | |
}, | |
{ | |
"key": "alt+space f", | |
"command": "fileutils.newFolder", | |
"category": "File", | |
"title": "New Folder Relative to Current View" | |
}, | |
{ | |
"key": "alt+space shift+f", | |
"command": "fileutils.newFolderAtRoot", | |
"category": "File", | |
"title": "New Folder Relative to Current View" | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment