vscode vim 快捷键 与配置

配置 setting.js


	{
  "files.associations": {
    "*.json": "jsonc"
  },
  "files.hotExit": "off",
  "editor.fontFamily": "Consolas, 'Courier New', monospace",
  "window.confirmBeforeClose": "never",
  "[php]": {
    "emmet.showAbbreviationSuggestions": false,
    "emmet.triggerExpansionOnTab": false
  },
  "editor.formatOnPaste": false,
  "editor.suggest.filterGraceful": true,
  "editor.autoClosingQuotes": "always",
  // "editor.suggest.showClasses": true,
  "editor.suggest.insertMode": "replace",
  // "editor.suggest.localityBonus": false,
  // "editor.suggest.matchOnWordStartOnly": true,
  "editor.acceptSuggestionOnCommitCharacter": false,
  "editor.suggest.showColors": true,
  "editor.suggest.preview": true,
  "editor.suggest.selectionMode": "always",
  "editor.quickSuggestions": {
    "other": "on",
    "comments": "off",
    "strings": "off"
  },
  "editor.scrollBeyondLastLine": true,
  "editor.fontSize": 20,
  "editor.lineHeight": 1.5,
  "editor.glyphMargin": false,
  // "editor.linkedEditing": true,
  "editor.guides.indentation": false,
  // "editor.guides.bracketPairsHorizontal":"active",
  "editor.links": true,
  "editor.renderLineHighlight": "all",
  "editor.autoIndent": "full",
  "editor.autoClosingDelete": "always",
  "editor.autoClosingBrackets": "always",
  "editor.autoClosingComments": "always",
  "editor.autoClosingOvertype": "always",
  "editor.autoSurround": "languageDefined",
  "editor.guides.bracketPairs": "active",
  // "apc.electron": {
  //   "frame": false
  // },
  // "apc.menubar.compact": true,
  // "apc.listRow": {
  //   "fontSize": 18,
  //   "height": 25,
  //   "lists": [
  //     "customview-tree",
  //     "results",
  //     "open-editors",
  //     "explorer-folders-view",
  //     "outline-tree",
  //     "scm-view",
  //     "debug-view-content",
  //     "debug-breakpoints",
  //     "tree"
  //   ],
  //   "parts": {}
  // },
  "workbench.tree.renderIndentGuides": "none",

  // "explorer.openEditors.minVisible": 0,
  "workbench.view.alwaysShowHeaderActions": false,
  "workbench.colorCustomizations": {
    "editorGroupHeader.tabsBackground": "#0d0d0d",
    "tab.border": "#0a0a0a",
    "tab.activeBackground": "#2d2d2d",
    "tab.inactiveForeground": "#888888",
    "tab.inactiveBackground": "#0a0a0a",
    "activityBar.background": "#0d0d0d",
    "sideBar.background": "#050505",
    "sideBar.border": "#050505",
    "activityBar.border": "#13111100",
    "breadcrumb.background": "#050505",
    "editorWidget.border": "#0d0d0d",
    "editor.background": "#0d0d0d",
    "editorGutter.background": "#0d0d0d",
    "editorWidget.background": "#0d0d0d",
    // "editorSuggestWidget.foreground": "#a3b5e9",
    // "editor.lineHighlightBackground": "#88888854",
    // "editorSuggestWidget.selectedBackground": "#333333",
    "editor.lineHighlightBackground": "#171614",

    "editorSuggestWidget.background": "#0d0d0d",

    "editorSuggestWidget.border": "#0d0d0d",
    "statusBar.debuggingForeground": "#ffffff",
    // "button.background": "#005f87",
    // "peekViewTitle.background": "#000000",
    // "editor.selectionBackground": "#d50d0d3d",
    // "editor.selectionForeground": "#ffffff",
    //
    // "statusBar.noFolderBackground": "#005f5f",
    // "statusBar.debuggingBackground": "#005f5f",

    // "statusBar.foreground": "#ffffff",
     //状态栏
    "statusBar.background": "#0d0d0d",
    "statusBar.noFolderBackground":"#0d0d0d",
    "button.background":"#228a96",
    "list.activeSelectionBackground": "#2d2d2d",
    "list.activeSelectionForeground": "#ffffff",
    "list.filterMatchBorder": "#8888",
    "list.focusOutline": "#2d2d2d",
    "panel.border": "#0d0d0d",

    "panel.background": "#000",
    // 自定义已修改行的边栏背景颜色
    "editorGutter.modifiedBackground": "#FFA500",
    // 自定义已添加行的边栏背景颜色
    "editorGutter.addedBackground": "#00FF00",
    // 自定义已删除行的边栏背景颜色
    "editorGutter.deletedBackground": "#FF0000",
    // 自定义源代码控制视图中已修改文件的颜色
    "gitDecoration.modifiedResourceForeground": "#FFA500",
    // 自定义源代码控制视图中已添加文件的颜色
    "gitDecoration.addedResourceForeground": "#00FF00",
    // 自定义源代码控制视图中已删除文件的颜色
    "gitDecoration.deletedResourceForeground": "#FF0000",
    // 自定义源代码控制视图中有冲突的文件的颜色
    "gitDecoration.conflictingResourceForeground": "#FF00FF",
    // 自定义源代码控制视图中被忽略文件的颜色
    "gitDecoration.ignoredResourceForeground": "#808080",
    // 自定义源代码控制视图中未跟踪文件的颜色
    "gitDecoration.untrackedResourceForeground": "#00FFFF"
  },
  "breadcrumbs.filePath": "last",
  // "vim.useSystemClipboard": true,
  "vim.vimrc.enable": true,
  "vim.insertModeKeyBindings": [
    {
      "before": ["j", "j"],
      "after": ["<Esc>", "<Esc>"]
    }
  ],
  "vim.useCtrlKeys": false,
  "vim.showcmd": true,
  // "editor.foldLevel": 2, // 折叠级别,0 表示完全展开
  "editor.folding": true, // 启用折叠功能
  "editor.foldingStrategy": "auto", // 自动折叠
  "vim.foldfix": true, // 修复 Vim 折叠功能
  "vim.sneak": true,
  "vim.sneakReplacesF": true,
  "vim.targets.enable": true,
  "vim.mouseSelectionGoesIntoVisualMode": true,
  "vim.visualstar": true,
  // "vim.statusBarColorControl": true,
  "vim.handleKeys": {
    "<C-w>": true,
    "<C-q>": true,
    "<C-i>": true,
    "<C-o>": true
  },
  // "vim.visualModeKeyBindingsNonRecursive": [
  //     {
  //         "before": ["z", "f"],
  //         "commands":"editor.createFoldingRangeFromSelection",
  //         "silent": true
  //     }
  // ],
  "extensions.experimental.affinity": {
    "vscodevim.vim": 1
  },
  "window.openWithoutArgumentsInNewWindow": "off",
  "window.openFilesInNewWindow": "off",
  "window.openFoldersInNewWindow": "off",
  "window.restoreWindows": "none",
  "terminal.integrated.defaultProfile.windows": "Git Bash",
  "terminal.integrated.fontSize": 20,
  "terminal.integrated.env.windows": {},
  "editor.stickyScroll.enabled": false,
  "extensions.ignoreRecommendations": true,
  "explorer.confirmDelete": false,
  "editor.minimap.enabled": false,
  "workbench.tree.enableStickyScroll": false,
  "workbench.tree.stickyScrollMaxItemCount": 1,
  "workbench.panel.focusOnOpen": true,
  "editor.showFoldingControls": "always",
  "emmet.triggerExpansionOnTab": true,
  "editor.codeActionsOnSave": {
    "source.fixAll.markdownlint": "explicit",
    "source.organizeImports": "always",
    "source.organizeLinkDefinitions": "always"
  },
  "[markdown]": {
    "editor.formatOnSave": true,
    "editor.formatOnPaste": true,
    "editor.wordBreak": "normal",
    "editor.quickSuggestions": {
      "other": "on",
      "comments": "off",
      "strings": "off"
    }
  },
  "files.saveConflictResolution": "overwriteFileOnDisk",
  "workbench.editor.enablePreview": false,
  // "workbench.settings.useSplitJSON": true,
  "workbench.editor.splitInGroupLayout": "vertical",
  "vim.commandLineModeKeyBindings": [],
  "files.simpleDialog.enable": true,
  "css.hover.references": false,
  "update.enableWindowsBackgroundUpdates": false,
  "update.mode": "none",
  "workbench.editor.limit.enabled": true, //控制打开的编辑器数是否应受限制。启用后,最近使用较少的编辑器将关闭,以为新打开的编辑器腾出空间
  "workbench.editor.limit.excludeDirty": true, //控制打开的编辑器的最大数目是否应排除脏编辑器以计入配置的限制
  "workbench.editor.limit.perEditorGroup": false, //控制最大打开的编辑器的限制是否应应用于每个编辑器组或所有编辑器组
  "workbench.editor.limit.value": 10,
 "workbench.editor.tabSizing": "shrink",
  "http.proxyStrictSSL": false,
  "workbench.experimental.enableNewProfilesUI": true,
  "extensions.autoUpdate": false,
  "editor.lightbulb.enabled": "on",
  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "tabnine.experimentalAutoImports": true,
  "code-runner.clearPreviousOutput": true,
  "editor.snippetSuggestions": "top",
  "[vue]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "settingsSync.ignoredExtensions": ["vue.volar", "rhapsodyn.vscode-evernote"], // 清除之前的输出
  "workbench.startupEditor": "none",
  "dev.containers.executeInWSL": true,
  "workbench.productIconTheme": "icons-carbon",
  "files.dialog.defaultPath": "D:\\workspace",
  "workbench.iconTheme": "file-icons",
  "[typescript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "scm.inputFontSize": 18,
  "chat.editor.fontSize": 18,
  "markdown.preview.fontSize": 18,
  "[css]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "remote.autoForwardPortsSource": "hybrid",
  "git.defaultCloneDirectory": "D:\\workspace",
  "emmet.excludeLanguages": [
    "markdown",
    "php"
  ],
  "[jsonc]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[javascriptreact]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "debug.toolBarLocation": "docked",
  "workbench.colorTheme": "Absent Contrast (rainglow)",
  "vue.updateImportsOnFileMove.enabled": false,
  "editor.tokenColorCustomizations": {
    "textMateRules": [
     {
       "scope":"storage",
       "settings": {
         "foreground": "#ebc106",
         "fontStyle": "bold"
       }
     },
     {
       "scope": [
         "entity.name.function",
         "support.function",
         "support.constant.handlebars",
         "source.powershell variable.other.member",
         "entity.name.operator.custom-literal"
       ],
       "settings": {
         "foreground": "#DCDCAA"
       }
     },
     {
       "scope":"string",
       "settings": {
         "foreground": "#aa7c25",
         "fontStyle": ""
       }
     },
     {
       "scope":"meta.definition.variable.ts",
       "settings": {
        "foreground": "#4b6e8a",
        "fontStyle": ""
       }
     },
     {
       "scope": "variable.parameter",
       "settings": {
         "foreground": "#6089B4",
         "fontStyle": ""
       }
     },
     {
       "scope":"entity.name.tag.html",
       "settings": {
         "foreground": "#44515E",
         "fontStyle": ""
       }
     },
   {
     "scope":"meta.tag.other.unrecognized.html.derivative",
     "settings": {
       "foreground": "#303105",
       "fontStyle": ""
     }
   },
   {
     "scope":"entity.other.attribute-name",
     "settings": {
       "foreground": "#6089B4",
       "fontStyle": ""
     }
   },
   {
     "scope":"punctuation.definition.tag.end.html",
     "settings": {
       "foreground": "#44515E",
       "fontStyle": ""
     }
   },
   {
     "scope":"punctuation.definition.tag.begin.html",
     "settings": {
       "foreground": "#44515E",
       "fontStyle": ""
     }
   },
   {
     "scope":"punctuation.attribute-shorthand.bind.html.vue",
     "settings": {
       "foreground": "#ff5e00",
       "fontStyle": ""
     }
   }

    ]
},
"window.dialogStyle": "custom",
"window.customTitleBarVisibility": "never",
"window.titleBarStyle":"native",
"window.menuBarVisibility": "toggle",
"workbench.layoutControl.enabled": false,
"window.commandCenter": false,
"git.openRepositoryInParentFolders": "always",
"window.zoomPerWindow": false,
"window.zoomLevel": 0.2,
"rest-client.previewResponseInUntitledDocument": false,
"rest-client.defaultHeaders": {
  "User-Agent": "vscode-restclient",
  "Host":"api.bc.test",
  "token":"vscode-restclient",
  "Accept": "application/json, text/plain, */*",
  "Accept-Encoding": "gzip, deflate, br, zstd",
  "Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8"
},
"genieai.openai.model": "gpt-3.5-turbo-16k",
"genieai.enableConversationHistory": true,
}


快捷键 keybindings.json

// 将键绑定放在此文件中以覆盖默认值
[
  {
    "key": "tab",
    "command": "selectNextSuggestion",
    "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus || suggestWidgetVisible && textInputFocus && !suggestWidgetHasFocusedSuggestion"
  },
  {
    "key": "tab",
    "command": "selectNextCodeAction",
    "when": "codeActionMenuVisible"
  },
  {
    "key": "shift+tab",
    "command": "selectPrevCodeAction",
    "when": "codeActionMenuVisible"
  },
  {
    "key": "shift+tab",
    "command": "selectPrevSuggestion",
    "when": " suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus || suggestWidgetVisible && textInputFocus && !suggestWidgetHasFocusedSuggestion"
  },
  {
    "key": "ctrl+l", // 焦点从编辑器移动到主菜单栏
    "command": "runCommands",
    "args": {
       "commands": [
         "workbench.action.focusSideBar"
       ]
    },
    "when": "editorTextFocus &&  textInputFocus && vim.mode == 'Normal'"
  },
  {
    "key": "ctrl+k", // 焦点从终端移动到编译器
    "command": "workbench.action.focusFirstEditorGroup",
    "when": "panelFocus"
  },
  {
    "key": "ctrl+l", // 焦点从主菜单移动到编译器
    "command": "workbench.action.focusFirstEditorGroup",
    "when": "sideBarFocus"
  },
  {
    "key": "ctrl+m", // 面板最大化
    "command": "workbench.action.toggleMaximizedPanel",
    "when": "panelFocus"
  },
  {
    "key": "ctrl+l", // 切换拆分终端
    "command": "workbench.action.terminal.focusPreviousPane",
    "when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
  },
  {
    "key": "ctrl+shift+k", // 在多个终端的时候切换上下终端
    "command": "workbench.action.terminal.focusNext",
    "when": "terminalFocus && terminalHasBeenCreated && !terminalEditorFocus || terminalFocus && terminalProcessSupported && !terminalEditorFocus"
  },
  {
    "key": "ctrl+shift+n", // 创建拆分终端
    "command": "workbench.action.terminal.split",
    "when": "terminalFocus && terminalProcessSupported || terminalFocus && terminalWebExtensionContributedProfile"
  },
  {
    "key": "ctrl+j",
    "command": "runCommands",
    "args": {
      "commands": [
        "workbench.action.togglePanel",
        "workbench.action.focusPanel"
      ]
    },
    "when": "!panelVisible"
  },
  {
    "key": "ctrl+j",
    "command": "workbench.action.focusPanel",
    "when": "editorTextFocus"
  },
  {
    "key": "ctrl+j",
    "command": "workbench.action.togglePanel",
    "when": "panelFocus"
  },
  {
    "key": "ctrl+o",
    "command": "workbench.action.nextPanelView",
    "when": "activePanel && panelFocus"
  },
  {
    "key": "ctrl+i",
    "command": "workbench.action.previousPanelView",
    "when": "activePanel && panelFocus"
  },
  // {
  //   "key": "ctrl+c",
  //   "command": "runCommands",
  //   "args": {
  //     "commands": [
  //       "editor.action.clipboardCopyAction",
  //       "extension.vim_ctrl+c"
  //     ]
  //   },
  //   "when": "textInputFocus &&   vim.active && vim.mode = 'Insert'"
  // },
  {
    "key": "ctrl+n", // 新建文件
    "command": "explorer.newFile",
    "when": "textInputFocus || filesExplorerFocus"
  },
  {
    "key": "ctrl+n", // 新建终端
    "command": "workbench.action.terminal.new",
    "when": "terminalFocus"
  },
  // {
  //   "key": "d", // 删除文件
  //   "command": "moveFileToTrash",
  //   "when": "sideBarFocus &&  explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus"
  //   // "when": " sideBarFocus && explorerResourceMoveableToTrash && filesExplorerFocus && foldersViewVisible && !explorerResourceReadonly && !inputFocus"
  // },
  {
    "key": "ctrl+a",
    "command": "extension.vim_cmd+a", // vim 全选
    "when": "editorTextFocus && vim.active && vim.use<D-a> && !inDebugRepl && vim.mode != 'Insert'"
  },
  {
    "key": "p",
    "command": "filesExplorer.paste",
    "when": "sideBarFocus &&  explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus"
  },
  {
    "key": "u",
    "command": "undo",
    "when": "sideBarFocus &&  explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus"
  },
  {
    "key": "shift+u",
    "command": "-undo",
    "when": "sideBarFocus &&  explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus"
  },
  {
    "key": "d",
    "command": "deleteFile",
    "when": "sideBarFocus &&  explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus"
  },
  {
    "key": "a",
    "command": "renameFile",
    "when": " sideBarFocus &&  explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus "
  },
  {
    "key": "o",
    "command": "workbench.files.action.collapseExplorerFolders",
    "when": "sideBarFocus &&  explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
  },
  {
    "key": "alt+enter", // 触发fix
    "command": "editor.action.quickFix",
    "when": "editorHasCodeActionsProvider && textInputFocus && !editorReadonly"
  },
  {
    "key": "ctrl+k",
    "command": "editor.action.triggerSuggest",
    "when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly && !suggestWidgetVisible"
  },
  {
    "key": "ctrl+shift+j", // 下一个sidebar
    "command": "runCommands",
    "args": {
      "commands": [
         "workbench.action.nextSideBarView",
         "workbench.action.focusSideBar"
      ]
    },
    // "when": "sideBarFocus && (!inputFocus  ||  activeViewlet=='workbench.view.search' || activeViewlet =='workbench.view.extensions')"
    "when": "sideBarFocus"
  },
  {

    "key": "ctrl+shift+k", // 上一个sidebar
    "command": "runCommands",
     "args": {
       "commands": [
         "workbench.action.previousSideBarView",
         "workbench.action.focusSideBar"
       ]
     },
    // "command": "workbench.action.previousSideBarView",
    // "when": "sideBarFocus && (!inputFocus  ||  activeViewlet=='workbench.view.search' || activeViewlet =='workbench.view.extensions')"
    "when": "sideBarFocus"
  },
  {
    "key": "ctrl+k",
    "command": "editor.action.inlineSuggest.hide",
    "when": "inlineSuggestionVisible"
  },
  {
    "key": "ctrl+k",
    "command": "hideSuggestWidget",
    "when": "suggestWidgetVisible && textInputFocus"
  },
  {
    "key": "ctrl+i",
    "command": "-editor.action.triggerSuggest",
    "when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly && !suggestWidgetVisible"
  },
  // {
  //   "key": "ctrl+d",
  //   "command": "editor.action.copyLinesDownAction",
  //   "when": "editorTextFocus && !editorReadonly"
  // },
  {
    "key": "shift+alt+down",
    "command": "-editor.action.copyLinesDownAction",
    "when": "editorTextFocus && !editorReadonly"
  },
  // {
  //   "key": "ctrl+r",
  //   "command": "workbench.action.debug.restart",
  //   "when": "inDebugMode"
  // },
  // {
  //   "key": "l",
  //   "command": "workbench.action.debug.stepInto",
  //   "when": "inDebugMode && debugState=='stopped'"
  // },
  // {
  //   "key": "j",
  //   "command": "workbench.action.debug.stepInto",
  //   "when": "inDebugMode && debugState=='stopped'"
  // },
  // {
  //   "key": "k",
  //   "command": "workbench.action.debug.stepOver",
  //   "when": "inDebugMode &&  debugState =='stopped'"
  // },
  // {
  //   "key": "ctrl+c",
  //   "command": "workbench.action.debug.continue",
  //   "when": "debugState == 'stopped'"
  // },
  // {
  //   "key": "ctrl+k i",
  //   "command": "editor.debug.action.toggleInlineBreakpoint",
  //   "when": "editorTextFocus && inDebugMode"
  // },
  {
    "key": "ctrl+j",
    "command": "-extension.vim_ctrl+j",
    "when": "editorTextFocus && vim.active && vim.use<C-j> && !inDebugRepl"
  },
  {
    "key": "ctrl+e",
    "command": "-workbench.action.quickOpen"
  },
  {
    "key": "ctrl+e",
    "command": "workbench.view.explorer",
    "when": "viewContainer.workbench.view.explorer.enabled"
  },
  {
    "key": "ctrl+shift+e",
    "command": "-workbench.view.explorer",
    "when": "viewContainer.workbench.view.explorer.enabled"
  },
  {
    "key": "ctrl+alt+r",
    "command": "-rest-client.request",
    "when": "editorTextFocus && editorLangId == 'http'"
  },
  // {
  //   "key": "ctrl+b",
  //   "command": "rest-client.rerun-last-request",
  //   "when": ""
  // }
  // {
  //   "key": "q",
  //   "command": "workbench.action.closeActiveEditor",
  //   "when": "editorFocus && vim.mode == 'Normal'",
  // },
  // {
  //   "key": "b",
  //   "command": "rest-client.rerun-last-request",
  //   "when": "editorTextFocus && vim.mode == 'Normal'",
  // },
  {
    "key": "ctrl+j",
    "command": "-workbench.action.togglePanel"
  },
  {
    "key": "ctrl+l",
    "command": "-expandLineSelection",
    "when": "textInputFocus"
  },
  {
    "key": "j",
    "command": "extension.vim_down",
    "when": "inOutput && panelFocus"
  },
  {
    "key": "l",
    "command": "extension.vim_right",
    "when": "inOutput &&  panelFocus"
  },
  {
    "key": "shift+j",
    "command": "cursorDownSelect",
    "when": "inOutput &&  panelFocus"
  },
  {
    "key": "shift+k",
    "command": "cursorUpSelect",
    "when": "inOutput &&  panelFocus"
  },
  {
    "key": "shift+l",
    "command": "cursorRightSelect",
    "when": "inOutput &&  panelFocus"
  },
  {
    "key": "shift+h",
    "command": "cursorLeftSelect",
    "when": "inOutput &&  panelFocus"
  },
  {
    "key": "h",
    "command": "extension.vim_left",
    "when": "inOutput &&  panelFocus"
  },
  {
    "key": "k",
    "command": "extension.vim_up",
    "when": "inOutput &&  panelFocus"
  },
  // {
  //   "key": "q",
  //   "command": "workbench.output.action.clearOutput",
  //   "when": "focusedView &&  panelFocus"
  // },
  // {
  //    显示右键菜单 
  //    "key": "i",
  //    "command": "editor.action.showContextMenu",
  //    "when": "editorHasSelection && vim.mode == 'VisualLine'"
  // }
  {
    "key": "enter",
    "command": "runCommands",
    "args": {
      "commands": [
        "code-runner.run",
        "extension.vim_escape"
      ]
    },
    "when": "editorHasSelection && vim.mode == 'VisualLine'"
  },
  {
    "key": "enter",
    "command": "runCommands",
    "args": {
      "commands": [
        "workbench.action.files.saveFiles",
        "code-runner.run"
      ]
    },
    "when": "!renameInputVisible && editorLangId == 'javascript'  && vim.mode == 'Normal'"
  },
  
  {
    "key": "enter",
    "command": "rest-client.request", // 发送http 请求
    "when": "editorLangId=='http' && vim.mode == 'Normal'"
  },
  {
    "key": "enter", // 请求接口
    "command": "rest-client.rerun-last-request",
    "when": "editorLangId =='php' && editorTextFocus &&  textInputFocus && vim.mode == 'Normal'"
  },
  {
    "key": "q",
    "command": "workbench.action.closeActiveEditor",
    "when": "httpResponsePreviewFocus"
  },
  {
    "key": "q",
    "command": "workbench.action.closeActiveEditor",
    "when": "editorFocus && editorTextFocus && vim.mode == 'Normal'"
  },
  {
    "key": "f", //文件搜索
    "command": "list.find",
    "when": "listFocus && listSupportsFind && !inputFocus"
  },
  // {
  //   "key": "i", // ctrl+p 快速面板 input 获取焦点
  //   "command": "workbench.action.quickOpenWithModes",
  //   "when": "inQuickOpen && listFocus &&  !inputFocus"
  // },
  {
    "key": "q", // ctrl+p 快速面板 
    "command": "workbench.action.closeQuickOpen",
    "when": "inQuickOpen && listFocus &&  !inputFocus"
  },
  {
    "key": "ctrl+alt+f",
    "command": "-list.find",
    "when": "listFocus && listSupportsFind"
  },
  {
    "key": "ctrl+l",
    "command": "workbench.action.focusFirstEditorGroup",
    "when": "activeEditor == 'WebviewEditor'"
  },
  {
   "key": "q",
    "command": "notifications.hideToasts",
    "when": "notificationToastsVisible"
  }, 
  {
   "key": "q",
   "command": "list.clear",
   "when": "listFocus && listHasSelectionOrFocus && !inputFocus && !treestickyScrollFocuse" 
  },
  {
    "key": "q",
    "command": "list.closeFind",
    "when": "listFocus && treeFindOpen"
  },
  {
    "key": "h",
    "command": "previousCompressedFolder",
    "when": "explorerViewletCompressedFocus && filesExplorerFocus && foldersViewVisible && !explorerViewletCompressedFirstFocus && !inputFocus"
  },
  {
    "key": "l",
    "command": "nextCompressedFolder",
    "when": "explorerViewletCompressedFocus && filesExplorerFocus && foldersViewVisible && !explorerViewletCompressedLastFocus && !inputFocus"
  },
  // {
  //   "key": "l",
  //   "command": "-list.select",
  //   "when": "listFocus && !inputFocus"
  // }

  {
    "key": "enter",
    "command": "editor.action.inlineSuggest.commit",
    "when": "!suggestWidgetVisible && inlineSuggestionVisible && tabnine.tab-override && !editorTabMovesFocus"
  },
  {
    "key": "tab",
    "command": "-editor.action.inlineSuggest.commit",
    "when": "inlineSuggestionVisible && tabnine.tab-override && !editorTabMovesFocus"
  },
  {
    "key": "tab",
    "command": "-tabnine.tab-override",
    "when": "suggestWidgetHasFocusedSuggestion && suggestWidgetVisible && tabnine.tab-override && textInputFocus"
  },
  {
    "key": "tab",
    "command": "-editor.action.inlineSuggest.commit",
    "when": "inlineSuggestionHasIndentationLessThanTabSize && inlineSuggestionVisible && !editorHoverFocused && !editorTabMovesFocus && !suggestWidgetVisible"
  },
  {
    "key": "ctrl+oem_comma",
    "command": "-workbench.action.openSettings"
  },
  {
    "key": "ctrl+oem_comma",
    "command": "workbench.action.toggleAuxiliaryBar"
  },
  {
    "key": "ctrl+alt+b",
    "command": "-workbench.action.toggleAuxiliaryBar"
  }
]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值