Skip to content

Instantly share code, notes, and snippets.

@jfromaniello
Created March 7, 2018 18:08
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 jfromaniello/7fc713b7f9494c41c850e04f7381f039 to your computer and use it in GitHub Desktop.
Save jfromaniello/7fc713b7f9494c41c850e04f7381f039 to your computer and use it in GitHub Desktop.
my keybindings for vscode (similar to sublime)
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+left",
"command": "subwordNavigation.cursorSubwordLeft",
"when": "editorTextFocus"
},
{
"key": "ctrl+right",
"command": "subwordNavigation.cursorSubwordRight",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+left",
"command": "subwordNavigation.cursorSubwordLeftSelect",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+right",
"command": "subwordNavigation.cursorSubwordRightSelect",
"when": "editorTextFocus"
},
{
"key": "ctrl+backspace",
"command": "subwordNavigation.deleteSubwordLeft",
"when": "editorTextFocus"
},
{
"key": "ctrl+delete",
"command": "subwordNavigation.deleteSubwordRight",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+down",
"command": "cursorColumnSelectDown",
"when": "editorTextFocus"
},
{
"key": "shift+alt+cmd+down",
"command": "-cursorColumnSelectDown",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+left",
"command": "cursorColumnSelectLeft",
"when": "editorTextFocus"
},
{
"key": "shift+alt+cmd+left",
"command": "-cursorColumnSelectLeft",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+right",
"command": "cursorColumnSelectRight",
"when": "editorTextFocus"
},
{
"key": "shift+alt+cmd+right",
"command": "-cursorColumnSelectRight",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+up",
"command": "cursorColumnSelectUp",
"when": "editorTextFocus"
},
{
"key": "shift+alt+cmd+up",
"command": "-cursorColumnSelectUp",
"when": "editorTextFocus"
},
{
"key": "cmd+shift+m",
"command": "node_require.require"
},
{
"key": "cmd+p",
"command": "workbench.action.quickOpenNavigateNextInFilePicker",
"when": "inFilesPicker && inQuickOpen"
},
{
"key": "cmd+p",
"command": "-workbench.action.quickOpenNavigateNextInFilePicker",
"when": "inFilesPicker && inQuickOpen"
},
{
"key": "cmd+t",
"command": "workbench.action.quickOpen"
},
{
"key": "cmd+p",
"command": "-workbench.action.quickOpen"
},
{
"key": "cmd+;",
"command": "workbench.action.debug.stepInto",
"when": "inDebugMode"
},
{
"key": "f11",
"command": "-workbench.action.debug.stepInto",
"when": "inDebugMode"
},
{
"key": "cmd+'",
"command": "workbench.action.debug.stepOver",
"when": "inDebugMode"
},
{
"key": "f10",
"command": "-workbench.action.debug.stepOver",
"when": "inDebugMode"
},
{
"key": "shift+cmd+;",
"command": "workbench.action.debug.stepOut",
"when": "inDebugMode"
},
{
"key": "shift+f11",
"command": "-workbench.action.debug.stepOut",
"when": "inDebugMode"
},
{
"key": "shift+f11",
"command": "-workbench.action.debug.stepOut",
"when": "inDebugMode"
},
{
"key": "cmd+\\",
"command": "workbench.action.debug.continue",
"when": "inDebugMode"
},
{
"key": "f5",
"command": "-workbench.action.debug.continue",
"when": "inDebugMode"
},
{
"key": "f5",
"command": "-workbench.action.debug.continue",
"when": "inDebugMode"
},
{
"key": "shift+cmd+d",
"command": "lafe.duplicateCode"
},
{
"key": "ctrl+k d",
"command": "-lafe.duplicateCode"
},
{
"key": "ctrl+cmd+up",
"command": "editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+up",
"command": "-editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+cmd+down",
"command": "editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+down",
"command": "-editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+r r",
"command": "editor.action.rename",
"when": "editorHasRenameProvider && editorTextFocus && !editorReadonly"
},
{
"key": "f2",
"command": "-editor.action.rename",
"when": "editorHasRenameProvider && editorTextFocus && !editorReadonly"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment