Skip to content

Instantly share code, notes, and snippets.

@dhargitai
Created October 7, 2020 15:49
Show Gist options
  • Save dhargitai/29c98354aba3fac6004dc0f24cae3bdb to your computer and use it in GitHub Desktop.
Save dhargitai/29c98354aba3fac6004dc0f24cae3bdb to your computer and use it in GitHub Desktop.
My VSCode keyboard shortcuts
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "alt+cmd+l",
"command": "editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+f",
"command": "-editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+r",
"command": "flutter.hotRestart",
"when": "dart-code:flutterProjectLoaded && inDebugMode"
},
{
"key": "ctrl+f5",
"command": "-flutter.hotRestart",
"when": "dart-code:flutterProjectLoaded && inDebugMode"
},
{
"key": "cmd+n",
"command": "--workbench.action.files.newUntitledFile"
},
{
"key": "shift+f6",
"command": "-workbench.action.focusPreviousPart"
},
{
"key": "ctrl+cmd+g",
"command": "editor.action.selectHighlights",
"when": "editorFocus"
},
{
"key": "shift+cmd+l",
"command": "-editor.action.selectHighlights",
"when": "editorFocus"
},
{
"key": "ctrl+g",
"command": "-workbench.action.gotoLine"
},
{
"key": "ctrl+g",
"command": "editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "cmd+d",
"command": "-editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "shift+f6",
"command": "editor.action.rename",
"when": "editorHasRenameProvider && editorTextFocus && !editorReadonly"
},
{
"key": "f2",
"command": "-editor.action.rename",
"when": "editorHasRenameProvider && editorTextFocus && !editorReadonly"
},
{
"key": "cmd+d",
"command": "editor.action.duplicateSelection"
},
{
"key": "alt+cmd+/",
"command": "editor.action.blockComment",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+a",
"command": "-editor.action.blockComment",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+enter",
"command": "-debug.openBreakpointToSide",
"when": "breakpointsFocused"
},
{
"key": "alt+enter",
"command": "-editor.action.selectAllMatches",
"when": "editorFocus && findWidgetVisible"
},
{
"key": "alt+enter",
"command": "-notebook.cell.executeAndInsertBelow",
"when": "notebookEditorFocused"
},
{
"key": "alt+enter",
"command": "editor.action.quickFix",
"when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly"
},
{
"key": "cmd+.",
"command": "-editor.action.quickFix",
"when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment