mituri

[VSC] Keybindings visual-studio-code

Mar 4th, 2024 (edited)
711
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Place your key bindings in this file to override the defaultsauto[]
  2. [
  3.   {
  4.     "key": "ctrl+shift+d",
  5.     "command": "-workbench.view.debug"
  6.   },
  7.   {
  8.     "key": "ctrl+shift+d",
  9.     "command": "editor.action.deleteLines",
  10.     "when": "textInputFocus && !editorReadonly"
  11.   },
  12.   {
  13.     "key": "ctrl+shift+k",
  14.     "command": "-editor.action.deleteLines",
  15.     "when": "textInputFocus && !editorReadonly"
  16.   },
  17.   {
  18.     "key": "ctrl+shift+s",
  19.     "command": "workbench.action.files.saveAll"
  20.   },
  21.   {
  22.     "key": "ctrl+k s",
  23.     "command": "-workbench.action.files.saveAll"
  24.   },
  25.   {
  26.     "key": "ctrl+pagedown",
  27.     "command": "-workbench.action.nextEditor"
  28.   },
  29.   {
  30.     "key": "ctrl+shift+alt+pagedown",
  31.     "command": "-cursorColumnSelectPageDown",
  32.     "when": "textInputFocus"
  33.   },
  34.   {
  35.     "key": "ctrl+end",
  36.     "command": "-workbench.action.terminal.scrollToBottom",
  37.     "when": "terminalFocus"
  38.   },
  39.   {
  40.     "key": "ctrl+tab",
  41.     "command": "workbench.action.nextEditor"
  42.   },
  43.   {
  44.     "key": "alt+s",
  45.     "command": "-gitlens.showQuickRepoStatus",
  46.     "when": "gitlens:enabled && config.gitlens.keymap == 'alternate'"
  47.   },
  48.   {
  49.     "key": "ctrl+shift+s",
  50.     "command": "-workbench.action.files.saveAs"
  51.   },
  52.   {
  53.     "key": "ctrl+shift+s",
  54.     "command": "-workbench.action.files.saveLocalFile",
  55.     "when": "remoteFileDialogVisible"
  56.   },
  57.   {
  58.     "key": "ctrl+tab",
  59.     "command": "-workbench.action.openNextRecentlyUsedEditorInGroup"
  60.   },
  61.   {
  62.     "key": "ctrl+tab",
  63.     "command": "-workbench.action.quickOpenNavigateNextInEditorPicker",
  64.     "when": "inEditorsPicker && inQuickOpen"
  65.   },
  66.   {
  67.     "key": "ctrl+pagedown",
  68.     "command": "-selectNextPageSuggestion",
  69.     "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
  70.   },
  71.   {
  72.     "key": "ctrl+shift+tab",
  73.     "command": "-workbench.action.openPreviousRecentlyUsedEditorInGroup"
  74.   },
  75.   {
  76.     "key": "ctrl+shift+tab",
  77.     "command": "-workbench.action.quickOpenNavigatePreviousInEditorPicker",
  78.     "when": "inEditorsPicker && inQuickOpen"
  79.   },
  80.   {
  81.     "key": "ctrl+shift+tab",
  82.     "command": "workbench.action.previousEditor"
  83.   },
  84.   {
  85.     "key": "ctrl+pageup",
  86.     "command": "-workbench.action.previousEditor"
  87.   },
  88.   {
  89.     "key": "ctrl+pageup",
  90.     "command": "-selectPrevPageSuggestion",
  91.     "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
  92.   },
  93.   {
  94.     "key": "ctrl+pageup",
  95.     "command": "workbench.action.moveEditorLeftInGroup"
  96.   },
  97.   {
  98.     "key": "ctrl+shift+pageup",
  99.     "command": "-workbench.action.moveEditorLeftInGroup"
  100.   },
  101.   {
  102.     "key": "ctrl+pagedown",
  103.     "command": "workbench.action.moveEditorRightInGroup"
  104.   },
  105.   {
  106.     "key": "ctrl+shift+pagedown",
  107.     "command": "-workbench.action.moveEditorRightInGroup"
  108.   },
  109.   {
  110.     "key": "ctrl+shift+c",
  111.     "command": "-workbench.action.terminal.openNativeConsole",
  112.     "when": "!terminalFocus"
  113.   },
  114.   {
  115.     "key": "ctrl+shift+c",
  116.     "command": "-workbench.action.terminal.copySelection",
  117.     "when": "terminalFocus && terminalTextSelected"
  118.   },
  119.   {
  120.     "key": "ctrl+shift+c",
  121.     "command": "workbench.panel.terminal.focus"
  122.   },
  123.   {
  124.     "key": "ctrl+f5",
  125.     "command": "-workbench.action.debug.run"
  126.   },
  127.   {
  128.     "key": "ctrl+shift+q",
  129.     "command": "-workbench.action.quickOpenNavigatePreviousInViewPicker",
  130.     "when": "inQuickOpen && inViewsPicker"
  131.   },
  132.   {
  133.     "key": "ctrl+shift+q",
  134.     "command": "workbench.action.keepEditor"
  135.   },
  136.   {
  137.     "key": "ctrl+k enter",
  138.     "command": "-workbench.action.keepEditor"
  139.   },
  140.   {
  141.     "key": "ctrl+shift+w",
  142.     "command": "-workbench.action.closeWindow"
  143.   },
  144.   {
  145.     "key": "ctrl+shift+1",
  146.     "command": "-search.action.replace",
  147.     "when": "matchFocus && replaceActive && searchViewletVisible"
  148.   },
  149.   {
  150.     "key": "ctrl+shift+1",
  151.     "command": "-search.action.replaceAllInFolder",
  152.     "when": "folderMatchFocus && replaceActive && searchViewletVisible"
  153.   },
  154.   {
  155.     "key": "ctrl+shift+1",
  156.     "command": "-search.action.replaceAllInFile",
  157.     "when": "fileMatchFocus && replaceActive && searchViewletVisible"
  158.   },
  159.   {
  160.     "key": "ctrl+shift+1",
  161.     "command": "-editor.action.replaceOne",
  162.     "when": "editorFocus && findWidgetVisible"
  163.   },
  164.   {
  165.     "key": "ctrl+shift+2",
  166.     "command": "workbench.action.terminal.focusNext"
  167.   },
  168.   {
  169.     "key": "ctrl+shift+1",
  170.     "command": "workbench.action.terminal.focusPrevious"
  171.   },
  172.   {
  173.     "key": "ctrl+alt+r",
  174.     "command": "workbench.action.reloadWindow",
  175.     "when": "isDevelopment"
  176.   },
  177.   {
  178.     "key": "ctrl+r",
  179.     "command": "-workbench.action.reloadWindow",
  180.     "when": "isDevelopment"
  181.   },
  182.   {
  183.     "key": "ctrl+enter",
  184.     "command": "-github.copilot.generate",
  185.     "when": "editorTextFocus && github.copilot.activated && !commentEditorFocused && !inInteractiveInput && !interactiveEditorFocused"
  186.   },
  187.   {
  188.     "key": "ctrl+enter",
  189.     "command": "-inlineChat.acceptChanges",
  190.     "when": "inlineChatHasProvider && inlineChatVisible && !inlineChatDocumentChanged || inlineChatHasProvider && inlineChatVisible && config.inlineChat.mode != 'preview'"
  191.   }
  192. ]
  193.  
Advertisement
Add Comment
Please, Sign In to add comment