Skip to content

Instantly share code, notes, and snippets.

@EstebanMqz
Last active April 17, 2024 08:57
Show Gist options
  • Save EstebanMqz/5ffc68fda71d5a2de76f009570dc0c8a to your computer and use it in GitHub Desktop.
Save EstebanMqz/5ffc68fda71d5a2de76f009570dc0c8a to your computer and use it in GitHub Desktop.
VSkeybindings.md
Profile

(Back-up & shareable purposes other than Cloud / Local Workspaces.)

SyncVS-Code-Web

Recommended: Add your own customized Context Menu Background Registries.
Use a System Restore Point before adding changes to the Registry Editor.

.bashrc

Profile Bashrc



Options:

For Windows Vista, XP, 7, 10, 11 OS & WSL users:

Insert the global PATH:

%AppData%\Code\User\keybindings.json
  1. With a File Explorer.
  2. Using CMD Here Context Menu Background Registry in any File Explorer.

Note: Be aware of timeline of files.


Keybindings.json

// 109 Custom Keybindings.json
[
    {
        "key": "shift+enter",
        "command": "workbench.action.terminal.runSelectedText"
    },
    {
        "key": "shift+enter",
        "command": "-jupyter.execSelectionInteractive",
        "when": "editorTextFocus && isWorkspaceTrusted && jupyter.ownsSelection && !findInputFocussed && !jupyter.webExtension && !notebookEditorFocused && !replaceInputFocussed && editorLangId == 'python'"
    },
    {
        "key": "ctrl+shift+r",
        "command": "-editor.action.refactor",
        "when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly"
    },
    {
        "key": "ctrl+shift+r",
        "command": "-rerunSearchEditorSearch",
        "when": "inSearchEditor"
    },
    {
        "key": "ctrl+shift+r",
        "command": "-workbench.action.quickOpenNavigatePreviousInRecentFilesPicker",
        "when": "inQuickOpen && inRecentFilesPicker"
    },
    {
        "key": "ctrl+shift+r",
        "command": "r.runAllChunks"
    },
    {
        "key": "ctrl+shift+b",
        "command": "-workbench.action.tasks.build",
        "when": "taskCommandsRegistered"
    },
    {
        "key": "ctrl+shift+b",
        "command": "r.runCurrentAndBelowChunks"
    },
    {
        "key": "ctrl+shift+b",
        "command": "jupyter.runcurrentcellandallbelow.palette"
    },
    {
        "key": "ctrl+t",
        "command": "editor.action.addCommentLine",
        "when": "editorTextFocus && !editorReadonly"
    },
    {
        "key": "ctrl+k ctrl+c",
        "command": "-editor.action.addCommentLine",
        "when": "editorTextFocus && !editorReadonly"
    },
    {
        "key": "ctrl+k ctrl+u",
        "command": "editor.action.removeCommentLine",
        "when": "editorTextFocus && !editorReadonly"
    },
    {
        "key": "ctrl+k ctrl+u",
        "command": "-editor.action.removeCommentLine",
        "when": "editorTextFocus && !editorReadonly"
    },
    {
        "key": "shift+alt+s",
        "command": "simpleTranslate",
        "when": "editorHasSelection"
    },
    {
        "key": "shift+alt+y",
        "command": "-simpleTranslate",
        "when": "editorHasSelection"
    },
    {
        "key": "shift+alt+y",
        "command": "completeTranslate"
    },
    {
        "key": "ctrl+c ctrl+x",
        "command": "interactiveEditor.start",
        "when": "interactiveEditorHasProvider && !editorReadonly"
    },
    {
        "key": "ctrl+shift+d",
        "command": "-workbench.view.debug",
        "when": "viewContainer.workbench.view.debug.enabled"
    },
    {
        "key": "ctrl+shift+d",
        "command": "docsView.documentation.focus"
    },
    {
        "key": "ctrl+shift+d",
        "command": "extension.gotoDocument",
        "when": "editorTextFocus"
    },
    {
        "key": "ctrl+shift+h",
        "command": "-extension.gotoDocument",
        "when": "editorTextFocus"
    },
    {
        "key": "ctrl+shift+a",
        "command": "docsView.documentationView.pin"
    },
    {
        "key": "ctrl+alt+s",
        "command": "workbench.action.files.saveFiles"
    },
    {
        "key": "ctrl+k s",
        "command": "-saveAll"
    },
    {
        "key": "alt+s",
        "command": "github.copilot.generate",
        "when": "editorTextFocus && github.copilot.activated"
    },
    {
        "key": "ctrl+enter",
        "command": "-github.copilot.generate",
        "when": "editorTextFocus && github.copilot.activated && !inInteractiveInput && !interactiveEditorFocused"
    },
    {
        "key": "shift+alt+x",
        "command": "notebook.cell.delete",
        "when": "notebookEditorFocused && !inputFocus"
    },
    {
        "key": "delete",
        "command": "-notebook.cell.delete",
        "when": "notebookEditorFocused && !inputFocus"
    },
    {
        "key": "shift+alt+x",
        "command": "jupyter.deleteCells",
        "when": "editorTextFocus && jupyter.hascodecells && !jupyter.webExtension && !notebookEditorFocused"
    },
    {
        "key": "ctrl+; x",
        "command": "-jupyter.deleteCells",
        "when": "editorTextFocus && jupyter.hascodecells && !jupyter.webExtension && !notebookEditorFocused"
    },
    {
        "key": "shift+pageup",
        "command": "-notebook.cell.cursorPageUpSelect",
        "when": "editorTextFocus && inputFocus && notebookEditorFocused"
    },
    {
        "key": "shift+pageup",
        "command": "-cursorColumnSelectPageUp",
        "when": "editorColumnSelection && textInputFocus"
    },
    {
        "key": "shift+pageup",
        "command": "-cursorPageUpSelect",
        "when": "textInputFocus"
    },
    {
        "key": "shift+pageup",
        "command": "-workbench.action.terminal.scrollUpPage",
        "when": "terminalFocus && terminalHasBeenCreated && !terminalAltBufferActive || terminalFocus && terminalProcessSupported && !terminalAltBufferActive"
    },
    {
        "key": "ctrl+home",
        "command": "-interactive.scrollToTop",
        "when": "resourceScheme == 'vscode-interactive'"
    },
    {
        "key": "ctrl+shift+t",
        "command": "-workbench.action.reopenClosedEditor"
    },
    {
        "key": "ctrl+shift+home",
        "command": "-cursorTopSelect",
        "when": "textInputFocus"
    },
    {
        "key": "shift+home",
        "command": "-cursorHomeSelect",
        "when": "textInputFocus"
    },
    {
        "key": "ctrl+home",
        "command": "-cursorTop",
        "when": "textInputFocus"
    },
    {
        "key": "ctrl+h",
        "command": "-editor.action.startFindReplaceAction",
        "when": "editorFocus || editorIsOpen"
    },
    {
        "key": "shift+alt+i",
        "command": "-editor.action.insertCursorAtEndOfEachLineSelected",
        "when": "editorTextFocus"
    },
    {
        "key": "end",
        "command": "-cursorEnd",
        "when": "textInputFocus"
    },
    {
        "key": "ctrl+shift+i",
        "command": "cursorHome",
        "when": "textInputFocus"
    },
    {
        "key": "home",
        "command": "-cursorHome",
        "when": "textInputFocus"
    },
    {
        "key": "ctrl+shift+i",
        "command": "-workbench.action.toggleDevTools",
        "when": "isDevelopment"
    },
    {
        "key": "ctrl+shift+h",
        "command": "-workbench.action.replaceInFiles"
    },
    {
        "key": "ctrl+shift+e",
        "command": "-workbench.view.explorer",
        "when": "viewContainer.workbench.view.explorer.enabled"
    },
    {
        "key": "ctrl+shift+e",
        "command": "-workbench.action.quickOpenNavigatePreviousInFilePicker",
        "when": "inFilesPicker && inQuickOpen"
    },
    {
        "key": "shift+end",
        "command": "-cursorEndSelect",
        "when": "textInputFocus"
    },
    {
        "key": "ctrl+shift+e",
        "command": "cursorLineEnd"
    },
    {
        "key": "shift+alt+m",
        "command": "workbench.action.toggleMenuBar"
    },
    {
        "key": "ctrl+d",
        "command": "github.copilot.collectDiagnostics"
    },
    {
        "key": "alt+right",
        "command": "-workbench.action.navigateForward",
        "when": "canNavigateForward"
    },
    {
        "key": "alt+right",
        "command": "-workbench.action.terminal.focusNextPane",
        "when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
    },
    {
        "key": "ctrl+right",
        "command": "editor.action.inlineSuggest.acceptNextWord",
        "when": "inlineSuggestionVisible && !editorReadonly"
    },
    {
        "key": "ctrl+right",
        "command": "-editor.action.inlineSuggest.acceptNextWord",
        "when": "inlineSuggestionVisible && !editorReadonly"
    },
    {
        "key": "tab",
        "command": "editor.action.inlineSuggest.commit",
        "when": "inlineSuggestionHasIndentationLessThanTabSize && inlineSuggestionVisible && !editorTabMovesFocus"
    },
    {
        "key": "tab",
        "command": "-editor.action.inlineSuggest.commit",
        "when": "inlineSuggestionHasIndentationLessThanTabSize && inlineSuggestionVisible && !editorTabMovesFocus"
    },
    {
        "key": "ctrl+right",
        "command": "-breadcrumbs.focusNext",
        "when": "breadcrumbsActive && breadcrumbsVisible"
    },
    {
        "key": "ctrl+right",
        "command": "github.copilot.acceptCursorPanelSolution",
        "when": "github.copilot.activated && github.copilot.panelVisible"
    },
    {
        "key": "ctrl+/",
        "command": "-github.copilot.acceptCursorPanelSolution",
        "when": "github.copilot.activated && github.copilot.panelVisible"
    },
    {
        "key": "shift+e",
        "command": "editor.emmet.action.expandAbbreviation",
        "when": "config.emmet.triggerExpansionOnTab && editorTextFocus && !editorReadonly && !editorTabMovesFocus"
    },
    {
        "key": "tab",
        "command": "-editor.emmet.action.expandAbbreviation",
        "when": "config.emmet.triggerExpansionOnTab && editorTextFocus && !editorReadonly && !editorTabMovesFocus"
    },
    {
        "key": "tab",
        "command": "github.copilot.acceptPanelSolution"
    },
    {
        "key": "tab",
        "command": "editor.action.inlineSuggest.acceptNextLine"
    },
    {
        "key": "ctrl+tab",
        "command": "-workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup",
        "when": "!activeEditorGroupEmpty"
    },
    {
        "key": "ctrl+tab",
        "command": "-workbench.action.quickOpenNavigateNextInEditorPicker",
        "when": "inEditorsPicker && inQuickOpen"
    },
    {
        "key": "tab",
        "command": "-tab",
        "when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus"
    },
    {
        "key": "ctrl+tab",
        "command": "editor.action.indentLines",
        "when": "editorTextFocus && !editorReadonly"
    },
    {
        "key": "ctrl+oem_6",
        "command": "-editor.action.indentLines",
        "when": "editorTextFocus && !editorReadonly"
    },
    {
        "key": "tab",
        "command": "acceptSelectedSuggestion",
        "when": "suggestWidgetHasFocusedSuggestion && suggestWidgetVisible && textInputFocus"
    },
    {
        "key": "tab",
        "command": "-acceptSelectedSuggestion",
        "when": "suggestWidgetHasFocusedSuggestion && suggestWidgetVisible && textInputFocus"
    },
    {
        "key": "shift+tab",
        "command": "outdent",
        "when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus"
    },
    {
        "key": "shift+tab",
        "command": "-workbench.action.terminal.focusAccessibleBuffer",
        "when": "accessibilityModeEnabled && terminalHasBeenCreated && terminalTabFocusMode && !terminalAccessibleBufferFocus || accessibilityModeEnabled && terminalProcessSupported && terminalTabFocusMode && !terminalAccessibleBufferFocus"
    },
    {
        "key": "alt+numpad_add",
        "command": "github.copilot.nextPanelSolution",
        "when": "github.copilot.activated && github.copilot.panelVisible"
    },
    {
        "key": "alt+numpad_subtract",
        "command": "github.copilot.previousPanelSolution",
        "when": "github.copilot.activated && github.copilot.panelVisible"
    },
    {
        "key": "shift+alt+p",
        "command": "pieces-vscode.saveToPieces",
        "when": "editorHasMultipleSelections || editorHasSelection || editorTextFocus"
    },
    {
        "key": "shift+alt+o",
        "command": "pieces-vscode.search"
    },
    {
        "key": "ctrl+k",
        "command": "-pieces-vscode.search"
    },
    {
        "key": "ctrl+shift+v",
        "command": "-pieces-vscode.saveToPieces",
        "when": "editorHasMultipleSelections || editorHasSelection || editorTextFocus"
    },
    {
        "key": "ctrl+shift+i",
        "command": "-pieces-vscode.generateShareableLink",
        "when": "editorTextFocus"
    },
    {
        "key": "ctrl+shift+enter",
        "command": "-editor.action.insertLineBefore",
        "when": "editorTextFocus && !editorReadonly"
    },
    {
        "key": "ctrl+enter",
        "command": "-editor.action.insertLineAfter",
        "when": "editorTextFocus && !editorReadonly"
    },
    {
        "key": "ctrl+shift+enter",
        "command": "-notebook.cell.insertCodeCellAbove",
        "when": "notebookCellListFocused && !inputFocus"
    },
    {
        "key": "b",
        "command": "-notebook.cell.insertCodeCellBelowAndFocusContainer",
        "when": "notebookEditorFocused && !inputFocus && !notebookOutputFocused"
    },
    {
        "key": "alt+q",
        "command": "editor.action.inlineSuggest.trigger",
        "when": "config.github.copilot.inlineSuggest.enable && editorTextFocus && !editorHasSelection && !inlineSuggestionsVisible"
    },
    {
        "key": "ctrl+shift+enter",
        "command": "notebook.cell.insertCodeCellAbove"
    },
    {
        "key": "ctrl+alt+i",
        "command": "workbench.view.explorer"
    },
    {
        "key": "alt+f",
        "command": "github.copilot.interactiveEditor.fix"
    },
    {
        "key": "ctrl+shift+t",
        "command": "editor.action.toggleMinimap"
    },
    {
        "key": "ctrl+shift+v",
        "command": "-html.showPreview",
        "when": "editorLangId == 'html'"
    },
    {
        "key": "ctrl+alt+c",
        "command": "-latex-workshop.clean",
        "when": "!config.latex-workshop.bind.altKeymap.enabled && !virtualWorkspace && editorLangId =~ /^latex$|^latex-expl3$|^rsweave$|^jlweave$|^pweave$/"
    },
    {
        "key": "ctrl+alt+i",
        "command": "-workbench.panel.chatSidebar.copilot"
    },
    {
        "key": "ctrl+h",
        "command": "workbench.action.openChat.copilot"
    },
    {
        "key": "alt+e",
        "command": "github.copilot.interactiveEditor.explain"
    },
    {
        "key": "alt+d",
        "command": "github.copilot.interactiveEditor.generateDocs",
        "when": "editorTextFocus && github.copilot.activated"
    },
    {
        "key": "ctrl+shift+j",
        "command": "-workbench.action.search.toggleQueryDetails",
        "when": "inSearchEditor || searchViewletFocus"
    },
    {
        "key": "ctrl+shift+j",
        "command": "extension.reg.jumpToKey",
        "when": "editorTextFocus"
    },
    {
        "key": "numpad_multiply",
        "command": "editor.action.addSelectionToNextFindMatch",
        "when": "editorFocus"
    },
    {
        "key": "ctrl+d",
        "command": "-editor.action.addSelectionToNextFindMatch",
        "when": "editorFocus"
    },
    {
        "key": "ctrl+alt+p",
        "command": "editor.action.formatSelection",
        "when": "editorTextFocus && editorHasSelection"
    },
    {
        "key": "ctrl+shift+h",
        "command": "vs-html-to-css.generate",
        "when": "editorTextFocus && editorLangId == html"
    },
    {
        "key": "alt+t",
        "command": "workbench.action.terminal.runSelectedText",
        "when": "editorTextFocus"
    },
    {
        "key": "ctrl+shift+t",
        "command": "github.copilot.interactiveEditor.generateTests"
    },
    {
        "key": "alt+i",
        "command": "inlineChat.start",
        "when": "editorFocus && inlineChatHasProvider && !editorReadonly"
    }
]

⚡Availability: 24/7 on WA (Business Inquiries only)
Connect with me in LinkedIn, receive the password if we match.

Description
Type: Code Snippet ( json )
Usage: VSCode keybindings.json for shareable & registry purposes.
Author: Resume LinkedInBusiness Gmail Github GitLab
Tags: pipreqs glob pip install import tabulate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment