Skip to content

Instantly share code, notes, and snippets.

@mohsen1
Last active November 4, 2018 19:23
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save mohsen1/4dfcc61c1b8d8f7a2824 to your computer and use it in GitHub Desktop.
Save mohsen1/4dfcc61c1b8d8f7a2824 to your computer and use it in GitHub Desktop.
Sublime Text key bindings for Visual Studio Code
[
{
"key": "shift+cmd+d",
"command": "editor.action.copyLinesDownAction"
},
{
"key": "cmd+l",
"command": "expandLineSelection"
},
{
"key": "cmd+ctrl+up",
"command": "editor.action.moveLinesUpAction"
},
{
"key": "cmd+ctrl+down",
"command": "editor.action.moveLinesDownAction"
},
{
"key": "cmd+d",
"command": "editor.action.addSelectionToNextFindMatch",
"when": "editorTextFocus"
},
{
"key": "shift+cmd+,",
"command": "vscode.previewSwagger",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+/",
"command": "editor.action.blockComment",
"when": "editorTextFocus"
},
{
"key": "ctrl+cmd+g",
"command": "editor.action.selectHighlights",
"when": "editorTextFocus"
}
]
@EvanLovely
Copy link

Might want to add this for left/right tab:

[
  {
    "key": "shift+cmd+]",
    "command": "workbench.action.nextEditor"
  },
  {
    "key": "shift+cmd+[",
    "command": "workbench.action.previousEditor"
  }
]

@jorgt
Copy link

jorgt commented Sep 27, 2016

cheers. 'copy lines down' has tripped my up so many times...

@xedef
Copy link

xedef commented Jan 4, 2017

"key": "cmd+ctrl+down" is working but doing a beep each time the shortcut is used and is driving me insane. Anybody else is having this issue?

@arturictus
Copy link

{ 
    "key": "cmd+shift+7",                 
    "command": "editor.action.commentLine",
    "when": "editorTextFocus && !editorReadonly" 
  }

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