Skip to content

Instantly share code, notes, and snippets.

@baltpeter
Created March 3, 2020 21:25
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 baltpeter/3cf6a5f5b273bacfca113d3b024b5611 to your computer and use it in GitHub Desktop.
Save baltpeter/3cf6a5f5b273bacfca113d3b024b5611 to your computer and use it in GitHub Desktop.
VS Code keyboard shortcuts
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+d",
"command": "-editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "ctrl+up",
"command": "-scrollLineUp",
"when": "textInputFocus"
},
{
"key": "ctrl+up",
"command": "editor.action.smartSelect.expand",
"when": "editorTextFocus"
},
{
"key": "shift+alt+right",
"command": "-editor.action.smartSelect.expand",
"when": "editorTextFocus"
},
{
"key": "ctrl+d",
"command": "editor.action.copyLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+alt+up",
"command": "-editor.action.copyLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+k",
"command": "editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+shift+k",
"command": "-editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+alt+s",
"command": "workbench.action.files.saveWithoutFormatting"
},
{
"key": "ctrl+k s",
"command": "-workbench.action.files.saveWithoutFormatting"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment