Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 16 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ansgarschulte/0f959243f63f9fd1436b to your computer and use it in GitHub Desktop.
Save ansgarschulte/0f959243f63f9fd1436b to your computer and use it in GitHub Desktop.
Visual Studio Code eclipse Shortcuts Mac
// Place your key bindings in this file to overwrite the defaults
[
{ "key": "cmd+shift+r", "command": "workbench.action.quickOpen" },
{ "key": "cmd+shift+f", "command": "editor.action.format", "when": "editorTextFocus" },
{ "key": "alt+cmd+down", "command": "editor.action.copyLinesDownAction", "when": "editorTextFocus" },
{ "key": "alt+cmd+up", "command": "editor.action.copyLinesUpAction", "when": "editorTextFocus" },
{ "key": "alt+down", "command": "editor.action.moveLinesDownAction", "when": "editorTextFocus" },
{ "key": "alt+up", "command": "editor.action.moveLinesUpAction", "when": "editorTextFocus" },
{ "key": "cmd+d", "command": "editor.action.deleteLines", "when": "editorTextFocus" },
{ "key": "alt+cmd+r", "command": "editor.action.rename", "when": "editorTextFocus" },
{ "key": "ctrl+space", "command": "editor.action.triggerSuggest", "when": "editorTextFocus" },
{ "key": "f3", "command": "editor.action.goToDeclaration", "when": "editorTextFocus" },
{ "key": "cmd+1", "command": "editor.action.quickFix", "when": "editorTextFocus" },
{ "key": "cmd+shift+g", "command": "editor.action.referenceSearch.trigger", "when": "editorTextFocus" },
{ "key": "cmd+shift+t", "command": "workbench.action.showAllSymbols" },
{ "key": "cmd+l", "command": "workbench.action.gotoLine" },
{ "key": "cmd+w", "command": "workbench.action.closeActiveEditor" },
{ "key": "cmd+shift+s", "command": "workbench.action.files.saveAs" },
{ "key": "cmd+alt+s", "command": "workbench.action.files.saveAll" },
{ "key": "cmd+alt+f", "when": "editorTextFocus" },
{ "key": "cmd+shift+c", "command": "editor.action.commentLine", "when": "editorTextFocus" }
]
@hoto
Copy link

hoto commented Mar 24, 2016

For windows (I just substituded cmd to ctrl):

[
    {
        "key": "ctrl+shift+r",
        "command": "workbench.action.quickOpen"
    },
    {
        "key": "ctrl+shift+f",
        "command": "editor.action.format",
        "when": "editorTextFocus"
    },
    {
        "key": "alt+ctrl+down",
        "command": "editor.action.copyLinesDownAction",
        "when": "editorTextFocus"
    },
    {
        "key": "alt+ctrl+up",
        "command": "editor.action.copyLinesUpAction",
        "when": "editorTextFocus"
    },
    {
        "key": "alt+down",
        "command": "editor.action.moveLinesDownAction",
        "when": "editorTextFocus"
    },
    {
        "key": "alt+up",
        "command": "editor.action.moveLinesUpAction",
        "when": "editorTextFocus"
    },
    {
        "key": "ctrl+d",
        "command": "editor.action.deleteLines",
        "when": "editorTextFocus"
    },
    {
        "key": "alt+ctrl+r",
        "command": "editor.action.rename",
        "when": "editorTextFocus"
    },
    {
        "key": "ctrl+space",
        "command": "editor.action.triggerSuggest",
        "when": "editorTextFocus"
    },
    {
        "key": "f3",
        "command": "editor.action.goToDeclaration",
        "when": "editorTextFocus"
    },
    {
        "key": "ctrl+1",
        "command": "editor.action.quickFix",
        "when": "editorTextFocus"
    },
    {
        "key": "ctrl+shift+g",
        "command": "editor.action.referenceSearch.trigger",
        "when": "editorTextFocus"
    },
    {
        "key": "ctrl+shift+t",
        "command": "workbench.action.showAllSymbols"
    },
    {
        "key": "ctrl+l",
        "command": "workbench.action.gotoLine"
    },
    {
        "key": "ctrl+w",
        "command": "workbench.action.closeActiveEditor"
    },
    {
        "key": "ctrl+shift+s",
        "command": "workbench.action.files.saveAs"
    },
    {
        "key": "ctrl+alt+s",
        "command": "workbench.action.files.saveAll"
    },
    {
        "key": "ctrl+alt+f",
        "when": "editorTextFocus"
    },
    {
        "key": "ctrl+shift+c",
        "command": "editor.action.commentLine",
        "when": "editorTextFocus"
    }
]

@hoto
Copy link

hoto commented Mar 24, 2016

for Intellij shortcut: toggle visibility of file sidebar menu:

    {
        "key": "alt+1",
        "command": "workbench.action.toggleSidebarVisibility"
    }

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