Skip to content

Instantly share code, notes, and snippets.

@joeSaad
Created July 21, 2021 21:09
Show Gist options
  • Save joeSaad/8d036da3a778bce3f553eee19dd6706e to your computer and use it in GitHub Desktop.
Save joeSaad/8d036da3a778bce3f553eee19dd6706e to your computer and use it in GitHub Desktop.
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "cmd+k cmd+c",
"command": "editor.action.addCommentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+k cmd+c",
"command": "-editor.action.addCommentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+\\",
"command": "editor.action.removeCommentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+k cmd+u",
"command": "-editor.action.removeCommentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+k cmd+u",
"command": "editor.foldAllBlockComments",
"when": "editorTextFocus"
},
{
"key": "cmd+k cmd+/",
"command": "-editor.foldAllBlockComments",
"when": "editorTextFocus"
},
{
"key": "shift+cmd+/",
"command": "editor.action.blockComment",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+a",
"command": "-editor.action.blockComment",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+d",
"command": "-editor.action.deleteLines",
"when": "editorTextFocus"
},
{
"key": "shift+cmd+f",
"command": "-editor.action.formatDocument",
"when": "editorTextFocus && !editorHasSelection"
},
{
"key": "shift+cmd+f",
"command": "-editor.action.formatSelection",
"when": "editorHasSelection && editorTextFocus"
},
{
"key": "shift+alt+cmd+f",
"command": "editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor"
},
{
"key": "shift+alt+f",
"command": "-editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor"
},
{
"key": "shift+alt+cmd+f",
"command": "editor.action.formatDocument.none",
"when": "editorTextFocus && !editorHasDocumentFormattingProvider && !editorReadonly"
},
{
"key": "shift+alt+f",
"command": "-editor.action.formatDocument.none",
"when": "editorTextFocus && !editorHasDocumentFormattingProvider && !editorReadonly"
},
{
"key": "shift+alt+cmd+f",
"command": "vue3snippets.format",
"when": "editorTextFocus && !editorReadonly && editorLangId == 'vue'"
},
{
"key": "shift+cmd+f",
"command": "-vue3snippets.format",
"when": "editorTextFocus && !editorReadonly && editorLangId == 'vue'"
}
]
@joeSaad
Copy link
Author

joeSaad commented Jul 21, 2021

/Users//Library/Application Support/Code/User/keybindings.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment