Skip to content

Instantly share code, notes, and snippets.

@rafaellehmkuhl
Last active March 15, 2019 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafaellehmkuhl/84a4972b9267a234d7e4290624b812f8 to your computer and use it in GitHub Desktop.
Save rafaellehmkuhl/84a4972b9267a234d7e4290624b812f8 to your computer and use it in GitHub Desktop.
My VSCode Keybindings
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+k ctrl+c",
"command": "editor.action.addCommentLine",
"when": "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+k ctrl+u",
"command": "-editor.action.removeCommentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+a",
"command": "-editor.action.blockComment",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+numpad_divide",
"command": "editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+7",
"command": "-editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+d",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+alt+down",
"command": "-editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+d",
"command": "-workbench.view.debug"
},
{
"key": "ctrl+pagedown",
"command": "list.focusLast",
"when": "listFocus"
},
{
"key": "end",
"command": "-list.focusLast",
"when": "listFocus"
},
{
"key": "ctrl+pageup",
"command": "list.focusFirst",
"when": "listFocus"
},
{
"key": "home",
"command": "-list.focusFirst",
"when": "listFocus"
},
{
"key": "ctrl+pageup",
"command": "-workbench.action.previousEditor"
},
{
"key": "ctrl+pagedown",
"command": "-workbench.action.nextEditor"
},
{
"key": "ctrl+pageup",
"command": "-selectPrevPageSuggestion",
"when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible"
},
{
"key": "ctrl+pagedown",
"command": "-selectNextPageSuggestion",
"when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible"
},
{
"key": "alt+left",
"command": "cursorHome",
"when": "editorTextFocus"
},
{
"key": "home",
"command": "-cursorHome",
"when": "editorTextFocus"
},
{
"key": "alt+right",
"command": "cursorEnd",
"when": "editorTextFocus"
},
{
"key": "end",
"command": "-cursorEnd",
"when": "editorTextFocus"
},
{
"key": "ctrl+t",
"command": "workbench.action.focusActiveEditorGroup",
"when": "terminalFocus"
},
{
"key": "ctrl+t",
"command": "workbench.action.terminal.focus",
"when": "!terminalFocus"
},
// Toggle between terminal and editor focus
{
"key": "ctrl+.",
"command": "workbench.action.terminal.focus"},
{
"key": "ctrl+.",
"command": "workbench.action.focusActiveEditorGroup",
"when": "terminalFocus"
},
{
"key": "ctrl+shift+down",
"command": "cursorColumnSelectDown",
"when": "textInputFocus"
},
{
"key": "ctrl+shift+alt+down",
"command": "-cursorColumnSelectDown",
"when": "textInputFocus"
},
{
"key": "ctrl+shift+up",
"command": "cursorColumnSelectUp",
"when": "textInputFocus"
},
{
"key": "ctrl+shift+alt+up",
"command": "-cursorColumnSelectUp",
"when": "textInputFocus"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment