Lothering1

VSCode keybindings.json

Sep 16th, 2022 (edited)
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 11.41 KB | None | 0 0
  1. // Place your key bindings in this file to override the defaults
  2. [
  3.     /* {
  4.         "key": "shift+space",
  5.         "command": "extension.vim_escape",
  6.         "when": "editorTextFocus"
  7.     }, */
  8.     {
  9.         "key": "ctrl+c",
  10.         "command": "-extension.vim_ctrl+c",
  11.         "when": "editorTextFocus && vim.active && vim.overrideCtrlC && vim.use<C-c> && !inDebugRepl"
  12.     },
  13.     {
  14.         "key": "ctrl+v",
  15.         "command": "-extension.vim_ctrl+v",
  16.         "when": "editorTextFocus && vim.active && vim.use<C-v> && !inDebugRepl"
  17.     },
  18.     {
  19.         "key": "ctrl+a",
  20.         "command": "-extension.vim_ctrl+a",
  21.         "when": "editorTextFocus && vim.active && vim.use<C-a> && !inDebugRepl"
  22.     },
  23.     {
  24.         "key": "ctrl+[",
  25.         "command": "-extension.vim_ctrl+[",
  26.         "when": "editorTextFocus && vim.active && vim.use<C-[> && !inDebugRepl"
  27.     },
  28.     {
  29.         "key": "ctrl+]",
  30.         "command": "-extension.vim_ctrl+]",
  31.         "when": "editorTextFocus && vim.active && vim.use<C-]> && !inDebugRepl"
  32.     },
  33.     {
  34.         "key": "ctrl+d",
  35.         "command": "-extension.vim_ctrl+d",
  36.         "when": "editorTextFocus && vim.active && vim.use<C-d> && !inDebugRepl"
  37.     },
  38.     {
  39.         "key": "ctrl+x",
  40.         "command": "-extension.vim_ctrl+x",
  41.         "when": "editorTextFocus && vim.active && vim.use<C-x> && !inDebugRepl"
  42.     },
  43.     {
  44.         "key": "ctrl+e",
  45.         "command": "-extension.vim_ctrl+e",
  46.         "when": "editorTextFocus && vim.active && vim.use<C-e> && !inDebugRepl"
  47.     },
  48.     {
  49.         "key": "ctrl+f",
  50.         "command": "-extension.vim_ctrl+f",
  51.         "when": "editorTextFocus && vim.active && vim.use<C-f> && !inDebugRepl && vim.mode != 'Insert'"
  52.     },
  53.     {
  54.         "key": "ctrl+shift+.",
  55.         "command": "-breadcrumbs.focusAndSelect",
  56.         "when": "breadcrumbsPossible"
  57.     },
  58.     {
  59.         "key": "ctrl+shift+.",
  60.         "command": "-editor.action.inPlaceReplace.down",
  61.         "when": "editorTextFocus && !editorReadonly"
  62.     },
  63.     {
  64.         "key": "ctrl+shift+.",
  65.         "command": "-breadcrumbs.toggleToOn",
  66.         "when": "!config.breadcrumbs.enabled"
  67.     },
  68.     {
  69.         "key": "ctrl+shift+,",
  70.         "command": "-editor.action.inPlaceReplace.up",
  71.         "when": "editorTextFocus && !editorReadonly"
  72.     },
  73.     {
  74.         "key": "tab",
  75.         "command": "-extension.vim_tab",
  76.         "when": "editorFocus && vim.active && !inDebugRepl && vim.mode != 'Insert'"
  77.     },
  78.     {
  79.         "key": "shift+tab",
  80.         "command": "-extension.vim_shift+tab",
  81.         "when": "editorFocus && vim.active && !inDebugRepl && vim.mode != 'Insert'"
  82.     },
  83.     {
  84.         "key": "ctrl+t",
  85.         "command": "-extension.vim_ctrl+t",
  86.         "when": "editorTextFocus && vim.active && vim.use<C-t> && !inDebugRepl"
  87.     },
  88.     {
  89.         "key": "ctrl+t",
  90.         "command": "-workbench.action.showAllSymbols"
  91.     },
  92.     {
  93.         "key": "ctrl+n",
  94.         "command": "-extension.vim_ctrl+n",
  95.         "when": "editorTextFocus && vim.active && vim.use<C-n> && !inDebugRepl || vim.active && vim.use<C-n> && !inDebugRepl && vim.mode == 'CommandlineInProgress' || vim.active && vim.use<C-n> && !inDebugRepl && vim.mode == 'SearchInProgressMode'"
  96.     },
  97.     {
  98.         "key": "ctrl+r",
  99.         "command": "-extension.vim_ctrl+r",
  100.         "when": "editorTextFocus && vim.active && vim.use<C-r> && !inDebugRepl"
  101.     },
  102.     {
  103.         "key": "ctrl+r",
  104.         "command": "-workbench.action.openRecent"
  105.     },
  106.     {
  107.         "key": "ctrl+r",
  108.         "command": "-workbench.action.reloadWindow",
  109.         "when": "isDevelopment"
  110.     },
  111.     {
  112.         "key": "ctrl+r",
  113.         "command": "-workbench.action.gotoSymbol"
  114.     },
  115.     {
  116.         "key": "ctrl+r",
  117.         "command": "-workbench.action.quickOpenNavigateNextInRecentFilesPicker",
  118.         "when": "inQuickOpen && inRecentFilesPicker"
  119.     },
  120.     {
  121.         "key": "ctrl+r",
  122.         "command": "extension.vim_ctrl+e"
  123.     },
  124.     {
  125.         "key": "ctrl+p",
  126.         "command": "-extension.vim_ctrl+p",
  127.         "when": "suggestWidgetVisible && vim.active && vim.use<C-p> && !inDebugRepl || vim.active && vim.use<C-p> && !inDebugRepl && vim.mode == 'CommandlineInProgress' || vim.active && vim.use<C-p> && !inDebugRepl && vim.mode == 'SearchInProgressMode'"
  128.     },
  129.     {
  130.         "key": "ctrl+l",
  131.         "command": "workbench.action.editor.changeLanguageMode",
  132.         "when": "!notebookEditorFocused"
  133.     },
  134.     {
  135.         "key": "ctrl+k m",
  136.         "command": "-workbench.action.editor.changeLanguageMode",
  137.         "when": "!notebookEditorFocused"
  138.     },
  139.     {
  140.         "key": "ctrl+1",
  141.         "command": "-workbench.action.focusFirstEditorGroup"
  142.     },
  143.     {
  144.         "key": "ctrl+shift+j",
  145.         "command": "-workbench.action.search.toggleQueryDetails",
  146.         "when": "inSearchEditor || searchViewletFocus"
  147.     },
  148.     {
  149.         "key": "ctrl+shift+t",
  150.         "command": "workbench.action.terminal.focusNext",
  151.         "when": "terminalFocus && terminalProcessSupported && !terminalEditorFocus"
  152.     },
  153.     {
  154.         "key": "ctrl+pagedown",
  155.         "command": "-workbench.action.terminal.focusNext",
  156.         "when": "terminalFocus && terminalProcessSupported && !terminalEditorFocus"
  157.     },
  158.     {
  159.         "key": "ctrl+shift+k",
  160.         "command": "-editor.action.deleteLines",
  161.         "when": "textInputFocus && !editorReadonly"
  162.     },
  163.     {
  164.         "key": "ctrl+shift+k",
  165.         "command": "-editor.action.deleteLines",
  166.         "when": "editorFocus"
  167.     },
  168.     {
  169.         "key": "ctrl+shift+n",
  170.         "command": "workbench.action.terminal.focusPrevious",
  171.         "when": "terminalFocus && terminalProcessSupported && !terminalEditorFocus"
  172.     },
  173.     {
  174.         "key": "ctrl+pageup",
  175.         "command": "-workbench.action.terminal.focusPrevious",
  176.         "when": "terminalFocus && terminalProcessSupported && !terminalEditorFocus"
  177.     },
  178.     {
  179.         "key": "ctrl+shift+h",
  180.         "command": "-workbench.action.replaceInFiles"
  181.     },
  182.     {
  183.         "key": "ctrl+w",
  184.         "command": "-workbench.action.terminal.killEditor",
  185.         "when": "terminalEditorFocus && terminalFocus && terminalProcessSupported && resourceScheme == 'vscode-terminal'"
  186.     },
  187.     {
  188.         "key": "ctrl+shift+h",
  189.         "command": "workbench.action.terminal.kill",
  190.         "when": "terminalFocus && terminalProcessSupported && !terminalEditorFocus"
  191.     },
  192.     {
  193.         "key": "ctrl+shift+=",
  194.         "command": "-workbench.action.zoomIn"
  195.     },
  196.     {
  197.         "key": "ctrl+=",
  198.         "command": "-workbench.action.zoomIn"
  199.     },
  200.     {
  201.         "key": "ctrl+-",
  202.         "command": "-workbench.action.zoomOut"
  203.     },
  204.     {
  205.         "key": "ctrl+;",
  206.         "command": "-workbench.action.gotoSymbol"
  207.     },
  208.     {
  209.         "key": "ctrl+;",
  210.         "command": "undo"
  211.     },
  212.     {
  213.         "key": "ctrl+z",
  214.         "command": "-undo"
  215.     },
  216.     {
  217.         "key": "ctrl+.",
  218.         "command": "-editor.action.quickFix",
  219.         "when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly"
  220.     },
  221.     {
  222.         "key": "ctrl+.",
  223.         "command": "-problems.action.showQuickFixes",
  224.         "when": "problemFocus"
  225.     },
  226.     {
  227.         "key": "ctrl+.",
  228.         "command": "workbench.action.quickOpen"
  229.     },
  230.     {
  231.         "key": "ctrl+e",
  232.         "command": "-workbench.action.quickOpen"
  233.     },
  234.     {
  235.         "key": "ctrl+.",
  236.         "command": "workbench.action.quickOpenNavigateNextInFilePicker",
  237.         "when": "inFilesPicker && inQuickOpen"
  238.     },
  239.     {
  240.         "key": "ctrl+e",
  241.         "command": "-workbench.action.quickOpenNavigateNextInFilePicker",
  242.         "when": "inFilesPicker && inQuickOpen"
  243.     },
  244.     {
  245.         "key": "ctrl+e",
  246.         "command": "editor.action.addSelectionToNextFindMatch",
  247.         "when": "editorFocus"
  248.     },
  249.     {
  250.         "key": "ctrl+d",
  251.         "command": "-editor.action.addSelectionToNextFindMatch",
  252.         "when": "editorFocus"
  253.     },
  254.     {
  255.         "key": "ctrl+e",
  256.         "command": "list.focusPageDown",
  257.         "when": "listFocus && !inputFocus"
  258.     },
  259.     {
  260.         "key": "ctrl+d",
  261.         "command": "-list.focusPageDown",
  262.         "when": "listFocus && !inputFocus"
  263.     },
  264.     {
  265.         "key": "ctrl+o",
  266.         "command": "-workbench.action.files.openFile",
  267.         "when": "true"
  268.     },
  269.     {
  270.         "key": "ctrl+o",
  271.         "command": "-workbench.action.files.openFileFolder",
  272.         "when": "isMacNative && openFolderWorkspaceSupport"
  273.     },
  274.     {
  275.         "key": "ctrl+o",
  276.         "command": "-extension.vim_ctrl+o",
  277.         "when": "editorTextFocus && vim.active && vim.use<C-o> && !inDebugRepl"
  278.     },
  279.     {
  280.         "key": "ctrl+o",
  281.         "command": "-workbench.action.files.openLocalFile",
  282.         "when": "remoteFileDialogVisible"
  283.     },
  284.     {
  285.         "key": "ctrl+o",
  286.         "command": "workbench.action.files.save"
  287.     },
  288.     {
  289.         "key": "ctrl+s",
  290.         "command": "-workbench.action.files.save"
  291.     },
  292.     {
  293.         "key": "ctrl+p",
  294.         "command": "-workbench.action.quickOpen"
  295.     },
  296.     {
  297.         "key": "ctrl+p",
  298.         "command": "-workbench.action.quickOpenNavigateNextInFilePicker",
  299.         "when": "inFilesPicker && inQuickOpen"
  300.     },
  301.     {
  302.         "key": "ctrl+p",
  303.         "command": "-workbench.action.quickOpenPreviousEditor"
  304.     },
  305.     {
  306.         "key": "ctrl+l",
  307.         "command": "-notebook.centerActiveCell",
  308.         "when": "notebookEditorFocused"
  309.     },
  310.     {
  311.         "key": "ctrl+l",
  312.         "command": "-expandLineSelection",
  313.         "when": "textInputFocus"
  314.     },
  315.     {
  316.         "key": "ctrl+l",
  317.         "command": "-expandLineSelection",
  318.         "when": "editorFocus"
  319.     },
  320.     {
  321.         "key": "ctrl+l",
  322.         "command": "-extension.vim_navigateCtrlL",
  323.         "when": "editorTextFocus && vim.active && vim.use<C-l> && !inDebugRepl"
  324.     },
  325.     {
  326.         "key": "ctrl+shift+t",
  327.         "command": "-workbench.action.reopenClosedEditor"
  328.     },
  329.     {
  330.         "key": "ctrl+shift+n",
  331.         "command": "-workbench.action.newWindow"
  332.     },
  333.     {
  334.         "key": "ctrl+0",
  335.         "command": "-workbench.action.focusSideBar"
  336.     },
  337.     {
  338.         "key": "ctrl+9",
  339.         "command": "-workbench.action.lastEditorInGroup"
  340.     },
  341.     {
  342.         "key": "ctrl+shift+d",
  343.         "command": "-workbench.view.debug",
  344.         "when": "viewContainer.workbench.view.debug.enabled"
  345.     },
  346.     {
  347.         "key": "ctrl+w",
  348.         "command": "-extension.vim_ctrl+w",
  349.         "when": "editorTextFocus && vim.active && vim.use<C-w> && !inDebugRepl"
  350.     },
  351.     {
  352.         "key": "ctrl+shift+y",
  353.         "command": "-workbench.debug.action.toggleRepl",
  354.         "when": "workbench.panel.repl.view.active"
  355.     },
  356.     {
  357.         "key": "ctrl+u",
  358.         "command": "-extension.vim_ctrl+u",
  359.         "when": "editorTextFocus && vim.active && vim.use<C-u> && !inDebugRepl"
  360.     },
  361.     {
  362.         "key": "ctrl+u",
  363.         "command": "-list.focusPageUp",
  364.         "when": "listFocus && !inputFocus"
  365.     },
  366.     {
  367.         "key": "ctrl+u",
  368.         "command": "-cursorUndo",
  369.         "when": "textInputFocus"
  370.     },
  371.     {
  372.         "key": "ctrl+u",
  373.         "command": "extension.vim_ctrl+u"
  374.     },
  375.     {
  376.         "key": "ctrl+u",
  377.         "when": "editorTextFocus",
  378.         "command": "moveby.calculation",
  379.         "args": {
  380.             "lineNrEx": "selections[selections.length-1].start.line",
  381.             "charNrEx": "selections[selections.length-1].start.character"
  382.         }
  383.     }
  384. ]
Add Comment
Please, Sign In to add comment