-
-
Save metachris/bca3e1196faa1f2f0dc0186f53ccae52 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your key bindings in this file to override the defaultsauto[] | |
[ | |
{ | |
"key": "cmd+r", | |
"command": "editor.action.rename", | |
"when": "editorHasRenameProvider && editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "f2", | |
"command": "-editor.action.rename", | |
"when": "editorHasRenameProvider && editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "cmd+r", | |
"command": "-workbench.action.reloadWindow", | |
"when": "isDevelopment" | |
}, | |
{ | |
"key": "ctrl+\\", | |
"command": "workbench.action.terminal.focus" | |
}, | |
{ | |
"key": "ctrl+\\", | |
"command": "workbench.action.focusActiveEditorGroup", | |
"when": "terminalFocus" | |
}, | |
{ | |
"key": "ctrl+cmd+m", | |
"command": "workbench.action.toggleMaximizedPanel" | |
}, | |
{ | |
"key": "cmd+u", | |
"command": "-cursorUndo", | |
"when": "textInputFocus" | |
}, | |
{ | |
"key": "shift+cmd+r", | |
"command": "references-view.findReferences", | |
"when": "editorHasReferenceProvider" | |
}, | |
{ | |
"key": "ctrl+cmd+t", | |
"command": "editor.action.peekTypeDefinition" | |
}, | |
{ | |
"key": "ctrl+cmd+i", | |
"command": "editor.action.peekImplementation", | |
"when": "editorHasImplementationProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor" | |
}, | |
{ | |
"key": "shift+cmd+f12", | |
"command": "-editor.action.peekImplementation", | |
"when": "editorHasImplementationProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor" | |
}, | |
{ | |
"key": "ctrl+cmd+r", | |
"command": "editor.action.referenceSearch.trigger" | |
}, | |
{ | |
"key": "ctrl+cmd+c", | |
"command": "editor.action.peekDefinition", | |
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor" | |
}, | |
{ | |
"key": "alt+f12", | |
"command": "-editor.action.peekDefinition", | |
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor" | |
}, | |
{ | |
"key": "shift+cmd+c", | |
"command": "-workbench.action.terminal.openNativeConsole", | |
"when": "!terminalFocus" | |
}, | |
{ | |
"key": "shift+cmd+c", | |
"command": "editor.action.revealDefinition", | |
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor" | |
}, | |
{ | |
"key": "f12", | |
"command": "-editor.action.revealDefinition", | |
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor" | |
}, | |
{ | |
"key": "shift+cmd+t", | |
"command": "-workbench.action.reopenClosedEditor" | |
}, | |
{ | |
"key": "shift+cmd+t", | |
"command": "editor.action.goToTypeDefinition" | |
}, | |
{ | |
"key": "ctrl+t", | |
"command": "-editor.action.transposeLetters", | |
"when": "textInputFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+t", | |
"command": "testing.runAtCursor", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "cmd+; c", | |
"command": "-testing.runAtCursor", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+enter", | |
"command": "-github.copilot.generate", | |
"when": "editorTextFocus && github.copilot.activated" | |
}, | |
{ | |
"key": "ctrl+enter", | |
"command": "python.execInTerminal", | |
"when": "editorTextFocus && editorLangId == python" | |
}, | |
{ | |
"key": "cmd+b", | |
"command": "-markdown.extension.editing.toggleBold", | |
"when": "editorTextFocus && !editorReadonly && editorLangId =~ /^markdown$|^rmd$|^quarto$/" | |
}, | |
{ | |
"key": "cmd+m", | |
"command": "-markdown.extension.editing.toggleMath", | |
"when": "editorTextFocus && !editorReadonly && editorLangId =~ /^markdown$|^rmd$|^quarto$/" | |
}, | |
{ | |
"key": "alt+c", | |
"command": "-markdown.extension.checkTaskList", | |
"when": "editorTextFocus && editorLangId =~ /^markdown$|^rmd$|^quarto$/" | |
}, | |
{ | |
"key": "ctrl+r", | |
"command": "rust-analyzer.run", | |
"when": "editorTextFocus && editorLangId == 'rust'" | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment