Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

EvanLovely commented Sep 4, 2016

Might want to add this for left/right tab:

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

This comment has been minimized.

Copy link

jorgt commented Sep 27, 2016

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

@xedef

This comment has been minimized.

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

This comment has been minimized.

Copy link

arturictus commented Jan 25, 2017

{ 
    "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
You can’t perform that action at this time.