Skip to content

Instantly share code, notes, and snippets.

@Itsindigo
Last active February 3, 2021 11:05
Show Gist options
  • Save Itsindigo/4ff33a50ac6bb38be606b201fa2d0683 to your computer and use it in GitHub Desktop.
Save Itsindigo/4ff33a50ac6bb38be606b201fa2d0683 to your computer and use it in GitHub Desktop.
VS Code Keybindings
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "shift+alt+down",
"command": "editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+down",
"command": "-editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+up",
"command": "editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+up",
"command": "-editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+down",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+down",
"command": "-editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+up",
"command": "editor.action.copyLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+up",
"command": "-editor.action.copyLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+r",
"command": "editor.action.startFindReplaceAction"
},
{
"key": "alt+cmd+f",
"command": "-editor.action.startFindReplaceAction"
},
{
"key": "shift+cmd+r",
"command": "workbench.action.replaceInFiles"
},
{
"key": "shift+cmd+h",
"command": "-workbench.action.replaceInFiles"
},
{ "key": "cmd+1", "command": "workbench.action.terminal.focus"},
{ "key": "cmd+1", "command": "workbench.action.focusActiveEditorGroup", "when": "terminalFocus"},
{ "key": "cmd+2", "command": "workbench.action.terminal.focusNextPane", "when": "terminalFocus"},
{ "key": "cmd+3", "command": "editor.action.revealDefinition", "when": "editorFocus"},
{
"key": "alt+up",
"command": "cursorMove",
"args": {
"to": "up",
"by": "line",
"value": 10
},
"when": "editorTextFocus"
},
{
"key": "alt+down",
"command": "cursorMove",
"args": {
"to": "down",
"by": "line",
"value": 10
},
"when": "editorTextFocus"
},
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment