Created
June 5, 2020 19:20
-
-
Save smartpcr/b2598fff70efe27b817805f116d4a961 to your computer and use it in GitHub Desktop.
vs code keyboard bindings
This file contains hidden or 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": "ctrl+k ctrl+d", | |
| "command": "editor.action.formatDocument", | |
| "when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "ctrl+k ctrl+c", | |
| "command": "editor.action.addCommentLine", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "ctrl+k ctrl+u", | |
| "command": "editor.action.removeCommentLine", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "ctrl+b", | |
| "command": "editor.action.goToDeclaration", | |
| "when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor" | |
| }, | |
| { | |
| "key": "ctrl+m ctrl+o", | |
| "command": "editor.foldAll", | |
| "when": "editorFocus" | |
| }, | |
| { | |
| "key": "ctrl+r ctrl+r", | |
| "command": "editor.action.rename", | |
| "when": "editorHasRenameProvider && editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "ctrl+9", | |
| "command": "explorer.newFolder" | |
| }, | |
| { | |
| "key": "ctrl+0", | |
| "command": "explorer.newFile" | |
| }, | |
| { | |
| "key": "ctrl+g ctrl+t", | |
| "command": "workbench.action.terminal.focus" | |
| }, | |
| { | |
| "key": "f8", | |
| "command": "-PowerShell.RunSelection", | |
| "when": "editorTextFocus && editorLangId == 'powershell'" | |
| }, | |
| { | |
| "key": "f8", | |
| "command": "PowerShell.RunSelection" | |
| }, | |
| { | |
| "key": "ctrl+;", | |
| "command": "workbench.action.terminal.runSelectedText" | |
| }, | |
| { | |
| "key": "ctrl+r ctrl+r", | |
| "command": "renameFile", | |
| "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus" | |
| }, | |
| { | |
| "key": "f2", | |
| "command": "-renameFile", | |
| "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus" | |
| }, | |
| { | |
| "key": "f2", | |
| "command": "-editor.action.rename", | |
| "when": "editorHasRenameProvider && editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "shift+tab", | |
| "command": "-insertPrevSuggestion", | |
| "when": "hasOtherSuggestions && textInputFocus && !inSnippetMode && !suggestWidgetVisible && config.editor.tabCompletion == 'on'" | |
| }, | |
| { | |
| "key": "shift+tab", | |
| "command": "-jumpToPrevSnippetPlaceholder", | |
| "when": "editorTextFocus && hasPrevTabstop && inSnippetMode" | |
| }, | |
| { | |
| "key": "ctrl+]", | |
| "command": "-editor.action.indentLines", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "tab", | |
| "command": "-editor.emmet.action.expandAbbreviation", | |
| "when": "config.emmet.triggerExpansionOnTab && editorTextFocus && !editorReadonly && !editorTabMovesFocus" | |
| }, | |
| { | |
| "key": "tab", | |
| "command": "-tab", | |
| "when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus" | |
| }, | |
| { | |
| "key": "tab", | |
| "command": "-acceptSelectedSuggestion", | |
| "when": "suggestWidgetVisible && textInputFocus" | |
| }, | |
| { | |
| "key": "tab", | |
| "command": "-insertBestCompletion", | |
| "when": "atEndOfWord && !hasOtherSuggestions && !inSnippetMode && !suggestWidgetVisible && config.editor.tabCompletion == 'on'" | |
| }, | |
| { | |
| "key": "tab", | |
| "command": "-insertNextSuggestion", | |
| "when": "hasOtherSuggestions && textInputFocus && !inSnippetMode && !suggestWidgetVisible && config.editor.tabCompletion == 'on'" | |
| }, | |
| { | |
| "key": "tab", | |
| "command": "-insertSnippet", | |
| "when": "editorTextFocus && hasSnippetCompletions && !editorTabMovesFocus && !inSnippetMode" | |
| }, | |
| { | |
| "key": "tab", | |
| "command": "-jumpToNextSnippetPlaceholder", | |
| "when": "editorTextFocus && hasNextTabstop && inSnippetMode" | |
| }, | |
| { | |
| "key": "tab", | |
| "command": "editor.action.indentLines" | |
| } | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment