Skip to content

Instantly share code, notes, and snippets.

@thabti
Created January 7, 2019 22:17
Show Gist options
  • Save thabti/1fd993a0f0c1a07ae96c9c51f6a49d53 to your computer and use it in GitHub Desktop.
Save thabti/1fd993a0f0c1a07ae96c9c51f6a49d53 to your computer and use it in GitHub Desktop.
vs code keymaps
// sab Place your key bindings in this file to overwrite the defaults
[
{
"key": "cmd+shift+l",
"mac": "cmd+shift+l",
"command": "editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly"
},
{
"key": "cmd+shift+l",
"mac": "cmd+shift+l",
"command": "beautify.format",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly"
},
{
"key": "cmd+shift+x",
"mac": "cmd+shift+x",
"command": "eslint.applyAutoFix",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly",
"intellij": "eslint single fix"
},
{
"key": "cmd+shift+x",
"mac": "cmd+shift+x",
"command": "editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly"
},
{
"key": "cmd+d",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus"
},
{
"key": "cmd+shift+up",
"command": "editor.action.moveLinesUpAction",
"when": "editorTextFocus"
},
{
"key": "cmd+shift+down",
"command": "editor.action.moveLinesDownAction",
"when": "editorTextFocus"
},
{
"key": "cmd+l",
"command": "editor.action.deleteLines",
"when": "editorTextFocus"
},
{
"key": "cmd+alt-k",
"command": "eslint.applyAllFixes",
"when": "editorTextFocus"
},
{
"key": "shift+f6",
"command": "editor.action.changeAll",
"when": "editorTextFocus"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment