Skip to content

Instantly share code, notes, and snippets.

@seanmodd
Created March 15, 2022 21:25
Show Gist options
  • Save seanmodd/f22aa99af960c568a0e68d7d0c25adaf to your computer and use it in GitHub Desktop.
Save seanmodd/f22aa99af960c568a0e68d7d0c25adaf to your computer and use it in GitHub Desktop.
VS Code Keyboard Shortcuts Personalized!!
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "shift+cmd+0",
"command": "quokka.installQuokkaPlugin"
},
{
"key": "shift+cmd+9",
"command": "quokka.installMissingPackageToProject"
},
{
"key": "cmd+1",
"command": "-workbench.action.focusFirstEditorGroup"
},
{
"key": "cmd+1",
"command": "quokka.makeQuokkaFromExistingFile",
"when": "!quokka.isLiveShareClient && !terminalFocus"
},
{
"key": "cmd+i",
"command": "workbench.action.closeActiveEditor",
"when": "editorTextFocus"
},
{
"key": "cmd+k q",
"command": "-quokka.makeQuokkaFromExistingFile",
"when": "!quokka.isLiveShareClient && !terminalFocus"
},
{
"key": "shift+cmd+k",
"command": "-editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "alt+cmd+p",
"command": "-togglePreserveCase",
"when": "editorFocus"
},
{
"key": "alt+cmd+p",
"command": "-toggleSearchPreserveCase",
"when": "searchViewletFocus"
},
{
"key": "alt+cmd+o",
"command": "workbench.action.openSettingsJson"
},
{
"key": "shift+1 up",
"command": "workbench.action.terminal.selectToPreviousCommand",
"when": "terminalFocus && terminalProcessSupported"
},
{
"key": "shift+cmd+up",
"command": "-workbench.action.terminal.selectToPreviousCommand",
"when": "terminalFocus && terminalProcessSupported"
},
{
"key": "alt+cmd+p",
"command": "codesnap.start"
},
{
"key": "alt+cmd+c",
"command": "-toggleSearchEditorCaseSensitive",
"when": "inSearchEditor && searchInputBoxFocus"
},
{
"key": "alt+cmd+c",
"command": "-toggleSearchCaseSensitive",
"when": "searchViewletFocus && !fileMatchOrFolderMatchFocus"
},
{
"key": "alt+cmd+c",
"command": "-toggleFindCaseSensitive",
"when": "editorFocus"
},
{
"key": "alt+cmd+c",
"command": "-search.action.copyPath",
"when": "fileMatchOrFolderMatchWithResourceFocus"
},
{
"key": "alt+cmd+c",
"command": "-workbench.action.terminal.toggleFindCaseSensitive",
"when": "terminalFindFocused && terminalProcessSupported || terminalFocus && terminalProcessSupported"
},
{
"key": "alt+cmd+c",
"command": "-copyFilePath",
"when": "!editorFocus"
},
{
"key": "alt+cmd+c",
"command": "codetour.addContentStep"
},
{
"key": "shift+cmd+m",
"command": "turboConsoleLog.displayLogMessage"
},
{
"key": "ctrl+alt+l",
"command": "-turboConsoleLog.displayLogMessage"
},
{
"key": "cmd+g",
"command": "emoji.insert"
},
{
"key": "shift+cmd+i",
"command": "workbench.extensions.action.installExtensions"
},
{
"key": "ctrl+alt+down",
"command": "spaceBlockJumper.moveDown"
},
{
"key": "ctrl+alt+up",
"command": "spaceBlockJumper.moveUp"
},
{
"key": "ctrl+up",
"command": "block-travel.jumpUp",
"when": "editorTextFocus"
},
{
"key": "shift+ctrl+up",
"command": "block-travel.selectUp",
"when": "editorTextFocus"
},
{
"key": "shift+alt+up",
"command": "editor.action.copyLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+up",
"command": "editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+down",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+down",
"command": "editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+cmd+k",
"command": "-bookmarks.toggle",
"when": "editorTextFocus"
},
{
"key": "shift+alt+k",
"command": "-bookmarks.shrinkSelection",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+j",
"command": "-bookmarks.jumpToPrevious",
"when": "editorTextFocus"
},
{
"key": "shift+alt+j",
"command": "-bookmarks.expandSelectionToPrevious",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+l",
"command": "-bookmarks.jumpToNext",
"when": "editorTextFocus"
},
{
"key": "shift+alt+l",
"command": "-bookmarks.expandSelectionToNext",
"when": "editorTextFocus"
},
{
"key": "ctrl+l",
"command": "-notebook.centerActiveCell",
"when": "notebookEditorFocused"
},
{
"key": "alt+l",
"command": "-Notes.listNotes"
},
//
// undo / redo jump
// (built-in commands, but these shortcuts play nice with other shortcuts)
//
{ "key": "alt+z", "command": "-workbench.action.navigateBack" },
{ "key": "alt+shift+z", "command": "-workbench.action.navigateForward" },
//
// alt+WASD (any os)
//
{ "key": "alt+w", "command": "-mario.moveUp", "when": "editorTextFocus" },
{ "key": "alt+shift+w", "command": "-mario.selectUp", "when": "editorTextFocus" },
{ "key": "alt+s", "command": "-mario.moveDown", "when": "editorTextFocus" },
{ "key": "alt+shift+s", "command": "-mario.selectDown", "when": "editorTextFocus" },
{ "key": "alt+a", "command": "-mario.moveToOuter", "when": "editorTextFocus" },
{ "key": "alt+shift+a", "command": "-mario.selectToOuter", "when": "editorTextFocus" },
{ "key": "alt+d", "command": "-mario.moveDownToInner", "when": "editorTextFocus" },
{ "key": "alt+shift+d", "command": "-mario.selectDownToInner", "when": "editorTextFocus" },
{ "key": "alt+e", "command": "-mario.moveUpToInner", "when": "editorTextFocus" },
{ "key": "alt+shift+e", "command": "-mario.selectUpToInner", "when": "editorTextFocus" }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment