Skip to content

Instantly share code, notes, and snippets.

@outrowender
Created December 11, 2023 19:24
Show Gist options
  • Save outrowender/dc29c11336277ac1eb4c3706280d363d to your computer and use it in GitHub Desktop.
Save outrowender/dc29c11336277ac1eb4c3706280d363d to your computer and use it in GitHub Desktop.
vscode key bindings
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "alt+cmd+]",
"command": "-editor.unfold",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "alt+cmd+]",
"command": "-notebook.unfold",
"when": "notebookEditorFocused && !inputFocus && activeEditor == 'workbench.editor.notebook'"
},
{
"key": "alt+cmd+[",
"command": "-editor.fold",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "alt+cmd+[",
"command": "-notebook.fold",
"when": "notebookEditorFocused && !inputFocus && activeEditor == 'workbench.editor.notebook'"
},
{
"key": "alt+cmd+]",
"command": "editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+down",
"command": "-editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+cmd+[",
"command": "editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+up",
"command": "-editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+i",
"command": "editor.action.formatSelection",
"when": "editorHasDocumentSelectionFormattingProvider && editorTextFocus && !editorReadonly"
},
{
"key": "cmd+k cmd+f",
"command": "-editor.action.formatSelection",
"when": "editorHasDocumentSelectionFormattingProvider && editorTextFocus && !editorReadonly"
},
{
"key": "cmd+d",
"command": "-editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "cmd+d",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+down",
"command": "-editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+o",
"command": "-editor.action.accessibleViewGoToSymbol",
"when": "accessibilityHelpIsShown && accessibleViewGoToSymbolSupported || accessibleViewGoToSymbolSupported && accessibleViewIsShown"
},
{
"key": "shift+cmd+o",
"command": "-workbench.action.terminal.openDetectedLink",
"when": "terminalFocus && terminalHasBeenCreated"
},
{
"key": "shift+cmd+o",
"command": "-workbench.action.gotoSymbol",
"when": "!accessibilityHelpIsShown && !accessibleViewIsShown"
},
{
"key": "cmd+o",
"command": "-workbench.action.files.openFile",
"when": "false"
},
{
"key": "cmd+o",
"command": "-workbench.action.files.openFileFolder",
"when": "isMacNative && openFolderWorkspaceSupport"
},
{
"key": "cmd+o",
"command": "-workbench.action.files.openFolderViaWorkspace",
"when": "!openFolderWorkspaceSupport && workbenchState == 'workspace'"
},
{
"key": "shift+cmd+o",
"command": "workbench.action.quickOpen"
},
{
"key": "cmd+p",
"command": "-workbench.action.quickOpen"
},
{
"key": "cmd+.",
"command": "-editor.action.quickFix",
"when": "editorHasCodeActionsProvider && textInputFocus && !editorReadonly"
},
{
"key": "cmd+.",
"command": "-problems.action.showQuickFixes",
"when": "problemFocus"
},
{
"key": "alt+cmd+.",
"command": "-editor.action.autoFix",
"when": "textInputFocus && !editorReadonly && supportedCodeAction =~ /(\\s|^)quickfix\\b/"
},
{
"key": "ctrl+cmd+'",
"command": "editor.action.quickFix"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment