配置 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.insertMode": "replace",
"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.guides.indentation": false,
"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",
"workbench.tree.renderIndentGuides": "none",
"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",
"editor.lineHighlightBackground": "#171614",
"editorSuggestWidget.background": "#0d0d0d",
"editorSuggestWidget.border": "#0d0d0d",
"statusBar.debuggingForeground": "#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.vimrc.enable": true,
"vim.insertModeKeyBindings": [
{
"before": ["j", "j"],
"after": ["<Esc>", "<Esc>"]
}
],
"vim.useCtrlKeys": false,
"vim.showcmd": true,
"editor.folding": true,
"editor.foldingStrategy": "auto",
"vim.foldfix": true,
"vim.sneak": true,
"vim.sneakReplacesF": true,
"vim.targets.enable": true,
"vim.mouseSelectionGoesIntoVisualMode": true,
"vim.visualstar": true,
"vim.handleKeys": {
"<C-w>": true,
"<C-q>": true,
"<C-i>": true,
"<C-o>": 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.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+n",
"command": "explorer.newFile",
"when": "textInputFocus || filesExplorerFocus"
},
{
"key": "ctrl+n",
"command": "workbench.action.terminal.new",
"when": "terminalFocus"
},
{
"key": "ctrl+a",
"command": "extension.vim_cmd+a",
"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",
"command": "editor.action.quickFix",
"when": "editorHasCodeActionsProvider && textInputFocus && !editorReadonly"
},
{
"key": "ctrl+k",
"command": "editor.action.triggerSuggest",
"when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly && !suggestWidgetVisible"
},
{
"key": "ctrl+shift+j",
"command": "runCommands",
"args": {
"commands": [
"workbench.action.nextSideBarView",
"workbench.action.focusSideBar"
]
},
"when": "sideBarFocus"
},
{
"key": "ctrl+shift+k",
"command": "runCommands",
"args": {
"commands": [
"workbench.action.previousSideBarView",
"workbench.action.focusSideBar"
]
},
"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": "shift+alt+down",
"command": "-editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"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+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": "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",
"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": "q",
"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": "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"
}
]