Last active
November 15, 2024 18:12
-
-
Save luckygoswami/96aa910dc0d4eefbdd7ab7bafab22157 to your computer and use it in GitHub Desktop.
vs code custom keyboard shortcuts
This file contains hidden or 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
| [ | |
| { | |
| "key": "ctrl+alt+s", | |
| "command": "code-runner.run" | |
| }, | |
| { | |
| "key": "ctrl+alt+n", | |
| "command": "-code-runner.run" | |
| }, | |
| { | |
| "key": "ctrl+alt+space", | |
| "command": "code-runner.stop" | |
| }, | |
| { | |
| "key": "ctrl+alt+m", | |
| "command": "-code-runner.stop" | |
| }, | |
| { | |
| "key": "ctrl+alt+d", | |
| "command": "editor.action.addSelectionToPreviousFindMatch" | |
| }, | |
| { | |
| "key": "shift+backspace", | |
| "command": "editor.action.deleteLines", | |
| "when": "textInputFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "ctrl+shift+k", | |
| "command": "-editor.action.deleteLines", | |
| "when": "textInputFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "shift+enter", | |
| "command": "-python.execSelectionInTerminal", | |
| "when": "editorTextFocus && !findInputFocussed && !jupyter.ownsSelection && !notebookEditorFocused && !replaceInputFocussed && editorLangId == 'python'" | |
| }, | |
| { | |
| "key": "ctrl+shift+space", | |
| "command": "closeParameterHints", | |
| "when": "editorFocus && parameterHintsVisible" | |
| }, | |
| { | |
| "key": "ctrl+alt+k", | |
| "command": "terminal.focus" | |
| }, | |
| { | |
| "key": "ctrl+shift+k", | |
| "command": "workbench.action.focusActiveEditorGroup" | |
| }, | |
| { | |
| "key": "shift+alt+a", | |
| "command": "editor.action.sortLinesAscending" | |
| }, | |
| { | |
| "key": "shift+alt+a", | |
| "command": "-editor.action.blockComment", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "ctrl+alt+k", | |
| "command": "-code-runner.runCustomCommand" | |
| }, | |
| { | |
| "key": "ctrl+shift+alt+k", | |
| "command": "bookmarks.toggle", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+alt+k", | |
| "command": "-bookmarks.toggle", | |
| "when": "editorTextFocus" | |
| } | |
| ] |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
VS Code Custom Keybindings
This Gist contains my personalized VS Code keybindings configuration (
keybindings.json). These keybindings optimize productivity by tailoring shortcuts for specific tasks, improving workflow and minimizing conflicts.Installation
To use these keybindings in your VS Code environment:
File > Preferences > Keyboard Shortcuts.keybindings.jsonwith the file provided in this Gist.Key Shortcuts
Ctrl + Alt + Scode-runner.runCtrl + Alt + N-code-runner.runCtrl + Alt + Spacecode-runner.stopCtrl + Alt + M-code-runner.stopCtrl + Alt + Deditor.action.addSelectionToPreviousFindMatchShift + Backspaceeditor.action.deleteLinesCtrl + Shift + K-editor.action.deleteLinesShift + Enter-python.execSelectionInTerminalCtrl + Shift + SpacecloseParameterHintsCtrl + Alt + Kterminal.focusCtrl + Shift + Kworkbench.action.focusActiveEditorGroupShift + Alt + Aeditor.action.sortLinesAscendingShift + Alt + A-editor.action.blockCommentCtrl + Alt + K-code-runner.runCustomCommandCtrl + Shift + Alt + Kbookmarks.toggleCtrl + Alt + K-bookmarks.toggleAdditional Notes
Code Runner Integration
Ctrl + Alt + S: The primary shortcut to run code using Code Runner.Ctrl + Alt + Space: Stops the execution of Code Runner.Ctrl + Alt + N,Ctrl + Alt + M,Ctrl + Alt + K).Editor Shortcuts
Shift + Alt + Afor block commenting with sorting lines in ascending order.Ctrl + Alt + K,Ctrl + Shift + K).Removed Shortcuts
Shift + Enterto prevent conflicts with other extensions.Feel free to fork this Gist and adjust these keybindings to match your preferences!