vscode编辑器(editor)有关的配置项

来自vscode官方文档,基本机翻

{
  // 已有值为默认值
  // Editor

  // 控制编辑器是否显示 CodeLens。
  "diffEditor.codeLens": false,

  //  - legacy: Uses the legacy diffing algorithm.
  //  - advanced: Uses the advanced diffing algorithm.
  "diffEditor.diffAlgorithm": "legacy",

  // 启用后,diff 编辑器将忽略前导或尾随空格中的更改。
  "diffEditor.ignoreTrimWhitespace": true,

  // 超时(以毫秒为单位),超过此时间后将取消差异计算。使用 0 表示无超时。
  "diffEditor.maxComputationTime": 5000,

  // 控制差异编辑器是否显示已添加/已删除更改的 +/- 指示器。
  "diffEditor.renderIndicators": true,

  // 启用后,差异编辑器将在其字形边距中显示箭头以还原更改。
  "diffEditor.renderMarginRevertIcon": true,

  // 控制差异编辑器是并排显示还是内联显示差异。
  "diffEditor.renderSideBySide": true,

  //  - off: Lines will never wrap.
  //  - on: Lines will wrap at the viewport width.
  //  - inherit: Lines will wrap according to the `editor.wordWrap` setting.
  "diffEditor.wordWrap": "inherit",

  // 控制是否应接受有关提交字符的建议。例如,在 JavaScript 中,分号(';')可以是接受建议并键入该字符的提交字符。
  "editor.acceptSuggestionOnCommitCharacter": true,

  // 控制除`Tab`之外,是否应在`Enter`上接受建议。有助于避免插入新行或接受建议之间的歧义。
  //  - on
  //  - smart: Only accept a suggestion with `Enter` when it makes a textual change.
  //  - off
  "editor.acceptSuggestionOnEnter": "on",

  // 控制 UI 是否应在针对屏幕阅读器进行优化的模式下运行。
  //  - auto: Use platform APIs to detect when a Screen Reader is attached.
  //  - on: Optimize for usage with a Screen Reader.
  //  - off: Assume a screen reader is not attached.
  "editor.accessibilitySupport": "auto",

  // 控制编辑器是否应在用户添加左方括号后自动关闭方括号。
  //  - always
  //  - languageDefined: Use language configurations to determine when to autoclose brackets.
  //  - beforeWhitespace: Autoclose brackets only when the cursor is to the left of whitespace.
  //  - never
  "editor.autoClosingBrackets": "languageDefined",

  // 控制编辑器在删除时是否应删除相邻的右引号或方括号。
  //  - always
  //  - auto: Remove adjacent closing quotes or brackets only if they were automatically inserted.
  //  - never
  "editor.autoClosingDelete": "auto",

  // 控制编辑器是否应在右引号或方括号上键入内容。
  //  - always
  //  - auto: Type over closing quotes or brackets only if they were automatically inserted.
  //  - never
  "editor.autoClosingOvertype": "auto",

  // 控制编辑器是否应在用户添加开始引号后自动关闭引号。
  //  - always
  //  - languageDefined: Use language configurations to determine when to autoclose quotes.
  //  - beforeWhitespace: Autoclose quotes only when the cursor is to the left of whitespace.
  //  - never
  "editor.autoClosingQuotes": "languageDefined",

  // 控制编辑器是否应在用户键入、粘贴、移动或缩进行时自动调整缩进。
  //  - none: The editor will not insert indentation automatically.
  //  - keep: The editor will keep the current line's indentation.
  //  - brackets: The editor will keep the current line's indentation and honor language defined brackets.
  //  - advanced: The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages.
  //  - full: The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.
  "editor.autoIndent": "full",

  // 控制编辑器在键入引号或方括号时是否应自动将所选内容括起来。
  //  - languageDefined: Use language configurations to determine when to automatically surround selections.
  //  - quotes: Surround with quotes but not brackets.
  //  - brackets: Surround with brackets but not quotes.
  //  - never
  "editor.autoSurround": "languageDefined",

  // 控制是否启用括号对着色。 使用`workbench.colorCustoms`覆盖括号突出显示颜色。
  "editor.bracketPairColorization.enabled": true,

  // 控制每个括号类型是否具有自己的独立颜色池。
  "editor.bracketPairColorization.independentColorPoolPerBracketType": false,

  // 要在保存时运行的代码操作类型。
  "editor.codeActionsOnSave": {},

  // 启用/禁用在`代码操作`菜单中显示组标头。
  "editor.codeActionWidget.showHeaders": true,

  // 控制编辑器是否显示 CodeLens。
  "editor.codeLens": true,

  // 控制 CodeLens 的字体系列。
  "editor.codeLensFontFamily": "",

  // 控制 CodeLens 的字体大小(以像素为单位)。设置为 0 时,将使用 90% 的`editor.fontSize`。
  "editor.codeLensFontSize": 0,

  // 控制编辑器是否应呈现内联颜色修饰器和颜色选取器。
  "editor.colorDecorators": true,

  // 控制使颜色选取器从颜色修饰器显示的条件
  //  - clickAndHover: Make the color picker appear both on click and hover of the color decorator
  //  - hover: Make the color picker appear on hover of the color decorator
  //  - click: Make the color picker appear on click of the color decorator
  "editor.colorDecoratorsActivatedOn": "clickAndHover",

  // 控制一次可以在编辑器中呈现的最大颜色修饰器数。
  "editor.colorDecoratorsLimit": 500,

  // 启用使用鼠标和键进行选择正在执行列选择。
  "editor.columnSelection": false,

  // 通过切换、添加或删除行注释的操作来控制是否应忽略空行。
  "editor.comments.ignoreEmptyLines": true,

  // 控制注释时是否插入空格字符。
  "editor.comments.insertSpace": true,

  // 控制是否应将语法突出显示复制到剪贴板中。
  "editor.copyWithSyntaxHighlighting": true,

  // 控制光标动画样式。
  "editor.cursorBlinking": "blink",

  // 控制是否应启用平滑插入符号动画。
  //  - off: Smooth caret animation is disabled.
  //  - explicit: Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture.
  //  - on: Smooth caret animation is always enabled.
  "editor.cursorSmoothCaretAnimation": "off",

  // 控制光标样式。
  "editor.cursorStyle": "line",

  // 控制光标周围的可见前导线(最小值 0)和尾随线(最小值 1)的最小数量。在其他一些编辑器中称为`scrollOff`或`scrollOffset`。
  "editor.cursorSurroundingLines": 0,

  // 控制何时应强制实施`光标环绕线`。
  //  - default: `cursorSurroundingLines` is enforced only when triggered via the keyboard or API.
  //  - all: `cursorSurroundingLines` is enforced always.
  "editor.cursorSurroundingLinesStyle": "default",

  // 控制当`editor.cursorStyle`设置为`line`时光标的宽度。
  "editor.cursorWidth": 0,

  // 控制是否应使用默认文档颜色提供程序显示内联颜色装饰
  "editor.defaultColorDecorators": false,

  // 定义默认折叠范围提供程序,该提供程序优先于所有其他折叠范围提供程序。必须是提供折叠范围提供程序的扩展的标识符。
  "editor.defaultFoldingRangeProvider": null,

  // 定义默认格式化程序,该格式化程序优先于所有其他格式化程序设置。必须是提供格式化程序的扩展的标识符。
  "editor.defaultFormatter": null,

  // 控制`转到定义`鼠标手势是否始终打开速览构件。
  "editor.definitionLinkOpensInPeek": false,

  // 控制在根据文件内容打开文件时是否自动检测`editor.tabSize#`和`#editor.insertSpaces`。
  "editor.detectIndentation": true,

  // 控制编辑器是否应允许通过拖放移动所选内容。
  "editor.dragAndDrop": true,

  // 控制是否可以通过按住`shift`(而不是在编辑器中打开文件)将文件拖放到文本编辑器中。
  "editor.dropIntoEditor.enabled": true,

  // 控制将文件拖放到编辑器中时是否显示小部件。此小组件可让您控制文件的删除方式。
  //  - afterDrop: Show the drop selector widget after a file is dropped into the editor.
  //  - never: Never show the drop selector widget. Instead the default drop provider is always used.
  "editor.dropIntoEditor.showDropSelector": "afterDrop",

  // 控制是否复制而不选择内容复制当前行。
  "editor.emptySelectionClipboard": true,

  // 按`Alt`时的滚动速度倍增器。
  "editor.fastScrollSensitivity": 5,

  // 控制`查找微件`是否应在编辑器顶部添加额外的行。如果为 true,则当`查找微件`可见时,您可以滚动到第一行之外。
  "editor.find.addExtraSpaceOnTop": true,

  // 控制自动打开`在所选内容中查找`的条件。
  //  - never: Never turn on Find in Selection automatically (default).
  //  - always: Always turn on Find in Selection automatically.
  //  - multiline: Turn on Find in Selection automatically when multiple lines of content are selected.
  "editor.find.autoFindInSelection": "never",

  // 控制键入时光标是否应跳转以查找匹配项。
  "editor.find.cursorMoveOnType": true,

  // 控制`查找`微件是否应读取或修改 macOS 上的共享查找剪贴板。
  "editor.find.globalFindClipboard": false,

  // 控制在找不到其他匹配项时,搜索是否从开头(或结尾)自动重新开始。
  "editor.find.loop": true,

  // 控制`查找微件`中的搜索字符串是否从编辑器选择中设定种子。
  //  - never: Never seed search string from the editor selection.
  //  - always: Always seed search string from the editor selection, including word at cursor position.
  //  - selection: Only seed search string from the editor selection.
  "editor.find.seedSearchStringFromSelection": "always",

  // 控制编辑器是否启用了代码折叠。
  "editor.folding": true,

  // 控制编辑器是否应突出显示折叠区域。
  "editor.foldingHighlight": true,

  // 控制编辑器是否自动折叠导入范围。
  "editor.foldingImportsByDefault": false,

  // 可折叠区域的最大数量。增加此值可能会导致编辑器在当前源具有大量可折叠区域时变得响应迟钝。
  "editor.foldingMaximumRegions": 5000,

  // 控制用于计算折叠范围的策略。
  //  - auto: Use a language-specific folding strategy if available, else the indentation-based one.
  //  - indentation: Use the indentation-based folding strategy.
  "editor.foldingStrategy": "auto",

  // 控制字体系列。
  "editor.fontFamily": "Consolas, 'Courier New', monospace",

  // 配置字体连字或字体功能。可以是用于启用/禁用连字的布尔值,也可以是用于 CSS `font-feature-settings` 属性值的字符串。
  "editor.fontLigatures": false,

  // 控制字体大小(以像素为单位)。
  "editor.fontSize": 14,

  // 配置字体变体。可以是用于启用/禁用从字体粗细到字体变体设置的转换的布尔值,也可以是 CSS `字体变体设置`属性值的字符串。
  "editor.fontVariations": false,

  // 控制字体粗细。接受 1 到 1000 之间的`普通`和`粗体`关键字或数字。
  "editor.fontWeight": "normal",

  // 控制编辑器是否应自动设置粘贴内容的格式。格式化程序必须可用,并且格式化程序应能够设置文档中范围的格式。
  "editor.formatOnPaste": false,

  // 保存时格式化文件。格式化程序必须可用,延迟后不得保存文件,并且编辑器不得关闭。
  "editor.formatOnSave": false,

  // 控制保存格式是格式化整个文件还是仅设置修改格式。仅在启用`editor.formatOnSave`时适用。
  //  - file: Format the whole file.
  //  - modifications: Format modifications (requires source control).
  //  - modificationsIfAvailable: Will attempt to format modifications only (requires source control). If source control can't be used, then the whole file will be formatted.
  "editor.formatOnSaveMode": "file",

  // 控制编辑器是否应在键入后自动设置行格式。
  "editor.formatOnType": false,

  // 控制编辑器是否应呈现垂直字形边距。字形边距主要用于调试。
  "editor.glyphMargin": true,

  // 当`转到声明`的结果为当前位置时正在执行的备用命令 ID。
  "editor.gotoLocation.alternativeDeclarationCommand": "editor.action.goToReferences",

  // 当`转到定义`的结果为当前位置时正在执行的备用命令 ID。
  "editor.gotoLocation.alternativeDefinitionCommand": "editor.action.goToReferences",

  // 当`转到实现`的结果为当前位置时正在执行的备用命令 ID。
  "editor.gotoLocation.alternativeImplementationCommand": "",

  // 当`转到引用`的结果为当前位置时正在执行的备用命令 ID。
  "editor.gotoLocation.alternativeReferenceCommand": "",

  // 当`转到类型定义`的结果为当前位置时正在执行的备用命令 ID。
  "editor.gotoLocation.alternativeTypeDefinitionCommand": "editor.action.goToReferences",

  // 控制存在多个目标位置时`转到声明`命令的行为。
  //  - peek: Show Peek view of the results (default)
  //  - gotoAndPeek: Go to the primary result and show a Peek view
  //  - goto: Go to the primary result and enable Peek-less navigation to others
  "editor.gotoLocation.multipleDeclarations": "peek",

  // 控制存在多个目标位置时`转到定义`命令的行为。
  //  - peek: Show Peek view of the results (default)
  //  - gotoAndPeek: Go to the primary result and show a Peek view
  //  - goto: Go to the primary result and enable Peek-less navigation to others
  "editor.gotoLocation.multipleDefinitions": "peek",

  // 控制存在多个目标位置时`转到实现`命令的行为。
  //  - peek: Show Peek view of the results (default)
  //  - gotoAndPeek: Go to the primary result and show a Peek view
  //  - goto: Go to the primary result and enable Peek-less navigation to others
  "editor.gotoLocation.multipleImplementations": "peek",

  // 控制存在多个目标位置时`转到引用`命令的行为。
  //  - peek: Show Peek view of the results (default)
  //  - gotoAndPeek: Go to the primary result and show a Peek view
  //  - goto: Go to the primary result and enable Peek-less navigation to others
  "editor.gotoLocation.multipleReferences": "peek",

  // 控制存在多个目标位置时`转到类型定义`命令的行为。
  //  - peek: Show Peek view of the results (default)
  //  - gotoAndPeek: Go to the primary result and show a Peek view
  //  - goto: Go to the primary result and enable Peek-less navigation to others
  "editor.gotoLocation.multipleTypeDefinitions": "peek",

  // 控制是否启用支架对导轨。
  //  - true: Enables bracket pair guides.
  //  - active: Enables bracket pair guides only for the active bracket pair.
  //  - false: Disables bracket pair guides.
  "editor.guides.bracketPairs": false,

  // 控制是否启用水平支架对导轨。
  //  - true: Enables horizontal guides as addition to vertical bracket pair guides.
  //  - active: Enables horizontal guides only for the active bracket pair.
  //  - false: Disables horizontal bracket pair guides.
  "editor.guides.bracketPairsHorizontal": "active",

  // 控制编辑器是否应突出显示活动括号对。
  "editor.guides.highlightActiveBracketPair": true,

  // 控制编辑器是否应突出显示活动缩进参考线。
  //  - true: Highlights the active indent guide.
  //  - always: Highlights the active indent guide even if bracket guides are highlighted.
  //  - false: Do not highlight the active indent guide.
  "editor.guides.highlightActiveIndentation": true,

  // 控制编辑器是否应呈现缩进参考线。
  "editor.guides.indentation": true,

  // 控制光标是否应隐藏在概览标尺中。
  "editor.hideCursorInOverviewRuler": false,

  // 如果有空间,最好将悬停悬停显示在线上方。
  "editor.hover.above": true,

  // 控制显示悬停的延迟(以毫秒为单位)。
  "editor.hover.delay": 300,

  // 控制是否显示悬停。
  "editor.hover.enabled": true,

  // 控制当鼠标移到悬停上时,悬停是否应保持可见。
  "editor.hover.sticky": true,

  // 用于缩进的空格数,或`tabSize`以使用`editor.tabSize#`中的值。当`#editor.detectIndentation`处于打开状态时,将根据文件内容覆盖此设置。
  "editor.indentSize": "tabSize",

  // 在编辑器中启用镶嵌提示。
  //  - on: Inlay hints are enabled
  //  - onUnlessPressed: Inlay hints are showing by default and hide when holding Ctrl+Alt
  //  - offUnlessPressed: Inlay hints are hidden by default and show when holding Ctrl+Alt
  //  - off: Inlay hints are disabled
  "editor.inlayHints.enabled": "on",

  // 控制编辑器中镶嵌提示的字体系列。当设置为空时,将使用`editor.fontFamily`。
  "editor.inlayHints.fontFamily": "",

  // 控制编辑器中镶嵌提示的字体大小。默认情况下,当配置的值小于`5`或大于编辑器字体大小时,将使用`editor.fontSize`。
  "editor.inlayHints.fontSize": 0,

  // 在编辑器中启用嵌体提示周围的填充。
  "editor.inlayHints.padding": false,

  // 控制是否在编辑器中自动显示内联建议。
  "editor.inlineSuggest.enabled": true,

  // 控制何时显示内联建议工具栏。
  //  - always: Show the inline suggestion toolbar whenever an inline suggestion is shown.
  //  - onHover: Show the inline suggestion toolbar when hovering over an inline suggestion.
  "editor.inlineSuggest.showToolbar": "onHover",

  // 控制内联建议与建议构件的交互方式。如果启用,则当内联建议可用时,不会自动显示建议微件。
  "editor.inlineSuggest.suppressSuggestions": false,

  // 按`Tab`时插入空格。当`editor.detectIndentation`打开时,此设置将根据文件内容被覆盖。
  "editor.insertSpaces": true,

  // 定义增加或减少缩进的括号符号。
  "editor.language.brackets": null,

  // 定义如果启用了括号对着色,则按其嵌套级别着色的括号对。
  "editor.language.colorizedBracketPairs": null,

  // 控制以像素为单位的字母间距。
  "editor.letterSpacing": 0,

  // 在编辑器中启用代码操作灯泡。
  "editor.lightbulb.enabled": true,

  // 控制行高。
  //  - Use 0 to automatically compute the line height from the font size.
  //  - Values between 0 and 8 will be used as a multiplier with the font size.
  //  - Values greater than or equal to 8 will be used as effective values.
  "editor.lineHeight": 0,

  // 控制行号的显示。
  //  - off: Line numbers are not rendered.
  //  - on: Line numbers are rendered as absolute number.
  //  - relative: Line numbers are rendered as distance in lines to cursor position.
  //  - interval: Line numbers are rendered every 10 lines.
  "editor.lineNumbers": "on",

  // 控制编辑器是否启用了链接编辑。根据语言的不同,相关符号(如 HTML 标记)会在编辑时更新。
  "editor.linkedEditing": false,

  // 控制编辑器是否应检测链接并使其可单击。
  "editor.links": true,

  // 突出显示匹配的括号。
  "editor.matchBrackets": "always",

  // 控制是否自动隐藏小地图。
  "editor.minimap.autohide": false,

  // 控制是否显示小地图。
  "editor.minimap.enabled": true,

  // 将小地图的宽度限制为最多呈现一定数量的列。
  "editor.minimap.maxColumn": 120,

  // 在一行上呈现实际字符,而不是色块。
  "editor.minimap.renderCharacters": true,

  // 在小地图中绘制的内容比例:1、2 或 3。
  "editor.minimap.scale": 1,

  // 控制显示小地图滑块的时间。
  "editor.minimap.showSlider": "mouseover",

  // 控制渲染小地图的一侧。
  "editor.minimap.side": "right",

  // 控制小地图的大小。
  //  - proportional: The minimap has the same size as the editor contents (and might scroll).
  //  - fill: The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling).
  //  - fit: The minimap will shrink as necessary to never be larger than the editor (no scrolling).
  "editor.minimap.size": "proportional",

  // 用于鼠标滚轮滚动事件的`deltaX`和`deltaY`的乘数。
  "editor.mouseWheelScrollSensitivity": 1,

  // Zoom the font of the editor when using mouse wheel and holding `Ctrl`.
  "editor.mouseWheelZoom": false,

  // 用于使用鼠标添加多个光标的修饰符。`转到定义`和`打开链接`鼠标手势将进行调整,使其不会与多光标修饰符冲突。
  //  - ctrlCmd: Maps to `Control` on Windows and Linux and to `Command` on macOS.
  //  - alt: Maps to `Alt` on Windows and Linux and to `Option` on macOS.
  "editor.multiCursorModifier": "alt",

  // 当粘贴文本的行数与光标计数匹配时控制粘贴。
  //  - spread: Each cursor pastes a single line of the text.
  //  - full: Each cursor pastes the full text.
  "editor.multiCursorPaste": "spread",

  // 控制编辑器是否应突出显示语义符号出现项。
  "editor.occurrencesHighlight": true,

  // 控制是否应围绕概览标尺绘制边框。
  "editor.overviewRulerBorder": true,

  // 控制编辑器的底边缘与最后一行之间的间距量。
  "editor.padding.bottom": 0,

  // 控制编辑器上边缘与第一行之间的间距量。
  "editor.padding.top": 0,

  // 控制参数提示菜单在到达列表末尾时是循环还是关闭。
  "editor.parameterHints.cycle": true,

  // 启用一个弹出窗口,在您键入时显示参数文档和类型信息。
  "editor.parameterHints.enabled": true,

  // 控制是否可以以不同的方式粘贴内容。
  "editor.pasteAs.enabled": true,

  // 控制将内容粘贴到编辑器时是否显示小组件。此小组件可让您控制文件的粘贴方式。
  //  - afterPaste: Show the paste selector widget after content is pasted into the editor.
  //  - never: Never show the paste selector widget. Instead the default pasting behavior is always used.
  "editor.pasteAs.showPasteSelector": "afterPaste",

  // 控制是将焦点放在内联编辑器还是放在速览小组件中的树上。
  //  - tree: Focus the tree when opening peek
  //  - editor: Focus the editor when opening peek
  "editor.peekWidgetDefaultFocus": "tree",

  // 控制是否应在键入时自动显示建议。
  "editor.quickSuggestions": {
    "other": "on",
    "comments": "off",
    "strings": "off"
  },

  // 控制延迟(以毫秒为单位),之后将显示快速建议。
  "editor.quickSuggestionsDelay": 10,

  // 启用/禁用在重命名之前预览更改的功能
  "editor.rename.enablePreview": true,

  // 控制编辑器是否应呈现控件字符。
  "editor.renderControlCharacters": true,

  // 当文件以换行符结尾时呈现最后一行号。
  "editor.renderFinalNewline": "on",

  // 控制编辑器应如何呈现当前行突出显示。
  //  - none
  //  - gutter
  //  - line
  //  - all: Highlights both the gutter and the current line.
  "editor.renderLineHighlight": "line",

  // 控制编辑器是否应仅在编辑器聚焦时呈现当前行突出显示。
  "editor.renderLineHighlightOnlyWhenFocus": false,

  // 控制编辑器应如何呈现空格字符。
  //  - none
  //  - boundary: Render whitespace characters except for single spaces between words.
  //  - selection: Render whitespace characters only on selected text.
  //  - trailing: Render only trailing whitespace characters.
  //  - all
  "editor.renderWhitespace": "selection",

  // 控制所选内容是否应具有圆角。
  "editor.roundedSelection": true,

  // 在一定数量的等宽字符之后渲染垂直标尺。对多个标尺使用多个值。如果数组为空,则不绘制标尺。
  "editor.rulers": [],

  // 控制水平滚动条的可见性。
  //  - auto: The horizontal scrollbar will be visible only when necessary.
  //  - visible: The horizontal scrollbar will always be visible.
  //  - hidden: The horizontal scrollbar will always be hidden.
  "editor.scrollbar.horizontal": "auto",

  // 水平滚动条的高度。
  "editor.scrollbar.horizontalScrollbarSize": 12,

  // 控制单击是按页面滚动还是跳转到单击位置。
  "editor.scrollbar.scrollByPage": false,

  // Controls the visibility of the vertical scrollbar.
  //  - auto: The vertical scrollbar will be visible only when necessary.
  //  - visible: The vertical scrollbar will always be visible.
  //  - hidden: The vertical scrollbar will always be hidden.
  "editor.scrollbar.vertical": "auto",

  // 垂直滚动条的宽度。
  "editor.scrollbar.verticalScrollbarSize": 14,

  // 控制编辑器水平滚动超过这些字符的额外字符数。
  "editor.scrollBeyondLastColumn": 4,

  // 控制编辑器是否滚动到最后一行以上。
  "editor.scrollBeyondLastLine": true,

  // 控制是否应支持 Linux 主剪贴板。
  "editor.selectionClipboard": true,

  // 同时垂直和水平滚动时,仅沿主轴滚动。防止在触控板上垂直滚动时水平漂移。
  "editor.scrollPredominantAxis": true,

  // 控制编辑器是否应突出显示与所选内容类似的匹配项。
  "editor.selectionHighlight": true,

  // 控制是否为支持语义突出显示的语言显示语义突出显示。
  //  - true: Semantic highlighting enabled for all color themes.
  //  - false: Semantic highlighting disabled for all color themes.
  //  - configuredByTheme: Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.
  "editor.semanticHighlighting.enabled": "configuredByTheme",

  // 覆盖当前所选颜色主题中的编辑器语义标记颜色和样式。
  "editor.semanticTokenColorCustomizations": {},

  // 控制删除线已弃用的变量。
  "editor.showDeprecated": true,

  // 显示装订线上的折叠控件时的控件。
  //  - always: Always show the folding controls.
  //  - never: Never show the folding controls and reduce the gutter size.
  //  - mouseover: Only show the folding controls when the mouse is over the gutter.
  "editor.showFoldingControls": "mouseover",

  // 控制淡出未使用的代码。
  "editor.showUnused": true,

  // 是否应始终选择前导和尾随空格。
  "editor.smartSelect.selectLeadingAndTrailingWhitespace": true,

  // 是否应该选择子词(如`fooBar`或`foo_bar`中的`foo`)。
  "editor.smartSelect.selectSubwords": true,

  // 控制编辑器是否使用动画滚动。
  "editor.smoothScrolling": false,

  // 控制代码段环绕或文件模板代码段是否显示为`代码操作`。
  "editor.snippets.codeActions.enabled": true,

  // 控制代码段是否与其他建议一起显示,以及代码段的排序方式。
  //  - top: Show snippet suggestions on top of other suggestions.
  //  - bottom: Show snippet suggestions below other suggestions.
  //  - inline: Show snippets suggestions with other suggestions.
  //  - none: Do not show snippet suggestions.
  "editor.snippetSuggestions": "inline",

  // 即使双击其内容或点击`逃脱`,也要保持速览编辑器打开。
  "editor.stablePeek": false,

  // 定义用于确定要粘附的线条的模型。如果轮廓模型不存在,它将回退到折叠提供模型,该模型回退到缩进模型。在所有三种情况下都遵守这一命令。
  "editor.stickyScroll.defaultModel": "outlineModel",

  // 在编辑器顶部滚动期间显示嵌套的当前范围。
  "editor.stickyScroll.enabled": false,

  // 定义要显示的最大粘滞线数。
  "editor.stickyScroll.maxLineCount": 5,

  // 模拟使用空格缩进时制表符的选择行为。选择将粘在制表位上。
  "editor.stickyTabStops": false,

  // 控制筛选和排序建议是否考虑小拼写错误。
  "editor.suggest.filterGraceful": true,

  // 控制在接受完成时是否覆盖单词。请注意,这取决于选择此功能的扩展。
  //  - insert: Insert suggestion without overwriting text right of the cursor.
  //  - replace: Insert suggestion and overwrite text right of the cursor.
  "editor.suggest.insertMode": "insert",

  // 控制排序是否优先于显示在光标附近的单词。
  "editor.suggest.localityBonus": false,

  //启用智能感知(IntelliSense)筛选后,要求单词开头的第一个字符匹配。例如,`Console`或`WebContext`上的`c`,而不是`description`上的`c`。
  "editor.suggest.matchOnWordStartOnly": true,

  // 控制是否在编辑器中预览建议结果。
  "editor.suggest.preview": false,

  // 控制在显示小组件时是否选择建议。
  //  - always: Always select a suggestion when automatically triggering IntelliSense.
  //  - never: Never select a suggestion when automatically triggering IntelliSense.
  //  - whenTriggerCharacter: Select a suggestion only when triggering IntelliSense from a trigger character.
  //  - whenQuickSuggestion: Select a suggestion only when triggering IntelliSense as you type.
  "editor.suggest.selectionMode": "always",

  //控制是否在多个工作区和窗口之间共享记住的建议选择(需要`editor.suggestSelection`)。
  "editor.suggest.shareSuggestSelections": false,

  // 启用智能感知(IntelliSense)后,将显示`class`建议。
  "editor.suggest.showClasses": true,

  // 启用智能感知(IntelliSense)后,将显示`color`建议。
  "editor.suggest.showColors": true,

  // 启用智能感知(IntelliSense)后,将显示`constant`建议。
  "editor.suggest.showConstants": true,

  // 启用智能感知(IntelliSense)后,将显示`constructor`建议。
  "editor.suggest.showConstructors": true,

  // 启用智能感知(IntelliSense)后,将显示`customcolor`建议。
  "editor.suggest.showCustomcolors": true,

  // 启用智能感知(IntelliSense)后,将显示`deprecated`建议。
  "editor.suggest.showDeprecated": true,

  // 启用智能感知(IntelliSense)后,将显示`enumMember`建议。
  "editor.suggest.showEnumMembers": true,

  // 启用智能感知(IntelliSense)后,将显示`enum`建议。
  "editor.suggest.showEnums": true,

  // 启用智能感知(IntelliSense)后,将显示`event`建议。
  "editor.suggest.showEvents": true,

  // 启用智能感知(IntelliSense)后,将显示`field`建议。
  "editor.suggest.showFields": true,

  // 启用智能感知(IntelliSense)后,将显示`file`建议。
  "editor.suggest.showFiles": true,

  // 启用智能感知(IntelliSense)后,将显示`folder`建议。
  "editor.suggest.showFolders": true,

  // 启用智能感知(IntelliSense)后,将显示`function`建议。
  "editor.suggest.showFunctions": true,

  // 控制在建议中是显示还是隐藏图标。
  "editor.suggest.showIcons": true,

  // 控制建议详细信息是与标签内联显示还是仅在详细信息小组件中显示。
  "editor.suggest.showInlineDetails": true,

  // 启用智能感知(IntelliSense)后,将显示`interface`建议。
  "editor.suggest.showInterfaces": true,

  // 启用智能感知(IntelliSense)后,将显示`issues`建议。
  "editor.suggest.showIssues": true,

  // 启用智能感知(IntelliSense)后,将显示`keyword`建议。
  "editor.suggest.showKeywords": true,

  // 启用智能感知(IntelliSense)后,将显示`method`建议。
  "editor.suggest.showMethods": true,

  // 启用智能感知(IntelliSense)后,将显示`module`建议。
  "editor.suggest.showModules": true,

  // 启用智能感知(IntelliSense)后,将显示`operator`建议。
  "editor.suggest.showOperators": true,

  // 启用智能感知(IntelliSense)后,将显示`property`建议。
  "editor.suggest.showProperties": true,

  // 启用智能感知(IntelliSense)后,将显示`reference`建议。
  "editor.suggest.showReferences": true,

  // 启用智能感知(IntelliSense)后,将显示`snippet`建议。
  "editor.suggest.showSnippets": true,

  // 控制建议小组件底部状态栏的可见性。
  "editor.suggest.showStatusBar": false,

  // 启用智能感知(IntelliSense)后,将显示`struct`建议。
  "editor.suggest.showStructs": true,

  // 启用智能感知(IntelliSense)后,将显示`typeParameter`建议。
  "editor.suggest.showTypeParameters": true,

  // 启用智能感知(IntelliSense)后,将显示`unit`建议。
  "editor.suggest.showUnits": true,

  // 启用智能感知(IntelliSense)后,将显示`user`建议。
  "editor.suggest.showUsers": true,

  // 启用智能感知(IntelliSense)后,将显示`value`建议。
  "editor.suggest.showValues": true,

  // 启用智能感知(IntelliSense)后,将显示`variable`建议。
  "editor.suggest.showVariables": true,

  // 启用智能感知(IntelliSense)后,将显示`text`建议。
  "editor.suggest.showWords": true,

  // 控制有效代码段是否阻止快速建议。
  "editor.suggest.snippetsPreventQuickSuggestions": false,

  // 建议微件的字体大小。当设置为`0`时,将使用`editor.fontSize`的值。
  "editor.suggestFontSize": 0,

  // 建议微件的行高。当设置为`0`时,将使用`editor.lineHeight`的值。最小值为 8。
  "editor.suggestLineHeight": 0,

  // 控制在键入触发字符时是否应自动显示建议。
  "editor.suggestOnTriggerCharacters": true,

  // 控制在显示建议列表时如何预先选择建议。
  //  - first: Always select the first suggestion.
  //  - recentlyUsed: Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently.
  //  - recentlyUsedByPrefix: Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.
  "editor.suggestSelection": "first",

  // 启用tab完成。
  //  - on: Tab complete will insert the best matching suggestion when pressing tab.
  //  - off: Disable tab completions.
  //  - onlySnippets: Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.
  "editor.tabCompletion": "off",

  // 控制编辑器是接收选项卡还是将其推迟到工作台进行导航。
  "editor.tabFocusMode": false,

  // 制表符的空格数等于。当`editor.detectIndentation`打开时,此设置将根据文件内容被覆盖。
  "editor.tabSize": 4,

  // 覆盖当前所选颜色主题中的编辑器语法颜色和字体样式。
  "editor.tokenColorCustomizations": {},

  // 删除尾随自动插入的空格。
  "editor.trimAutoWhitespace": true,

  // 控制是否单击折叠线后的空内容将展开该行。
  "editor.unfoldOnClickAfterEndOfLine": false,

  // 定义允许未突出显示的字符。
  "editor.unicodeHighlight.allowedCharacters": {},

  // 在允许的区域设置中常见的 Unicode 字符不会突出显示。
  "editor.unicodeHighlight.allowedLocales": {
    "_os": true,
    "_vscode": true
  },

  // 控制是否突出显示可能与基本 ASCII 字符混淆的字符,但当前用户区域设置中常见的字符除外。
  "editor.unicodeHighlight.ambiguousCharacters": true,

  // 控制注释中的字符是否也应突出显示 Unicode。
  "editor.unicodeHighlight.includeComments": "inUntrustedWorkspace",

  // 控制字符串中的字符是否也应突出显示 Unicode。
  "editor.unicodeHighlight.includeStrings": true,

  // 控制是否突出显示仅保留空间或根本没有宽度的字符。
  "editor.unicodeHighlight.invisibleCharacters": true,

  // 控制是否突出显示所有非基本 ASCII 字符。只有介于 U+0020 和 U+007E、制表符、换行符和回车符之间的字符才被视为基本 ASCII。
  "editor.unicodeHighlight.nonBasicASCII": "inUntrustedWorkspace",

  // 删除可能导致问题的异常线路终止符。
  //  - auto: Unusual line terminators are automatically removed.
  //  - off: Unusual line terminators are ignored.
  //  - prompt: Unusual line terminators prompt to be removed.
  "editor.unusualLineTerminators": "prompt",

  // 在制表位之后插入和删除空格。
  "editor.useTabStops": true,

  // 控制是否应根据文档中的单词计算完成次数。
  "editor.wordBasedSuggestions": true,

  // 从中计算文档基于字的补全的控件。
  //  - currentDocument: Only suggest words from the active document.
  //  - matchingDocuments: Suggest words from all open documents of the same language.
  //  - allDocuments: Suggest words from all open documents.
  "editor.wordBasedSuggestionsMode": "matchingDocuments",

  // 控制用于中文/日语/韩语 (CJK) 文本的分词符规则。
  //  - normal: Use the default line break rule.
  //  - keepAll: Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.
  "editor.wordBreak": "normal",

  // 在执行与单词相关的导航或操作时将用作单词分隔符的字符。
  "editor.wordSeparators": "`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",

  // 控制线条应如何换行。
  //  - off: Lines will never wrap.
  //  - on: Lines will wrap at the viewport width.
  //  - wordWrapColumn: Lines will wrap at `editor.wordWrapColumn`.
  //  - bounded: Lines will wrap at the minimum of viewport and `editor.wordWrapColumn`.
  "editor.wordWrap": "off",

  // 当`editor.wordWrap`为`wordWrapColumn`或`bounded`时控制编辑器的换行列。
  "editor.wordWrapColumn": 80,

  // 控制换行的缩进。
  //  - none: No indentation. Wrapped lines begin at column 1.
  //  - same: Wrapped lines get the same indentation as the parent.
  //  - indent: Wrapped lines get +1 indentation toward the parent.
  //  - deepIndent: Wrapped lines get +2 indentation toward the parent.
  "editor.wrappingIndent": "same",

  // 控制计算包装点的算法。
  //  - simple: Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width.
  //  - advanced: Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.
  "editor.wrappingStrategy": "simple",
}
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

风飘北院

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值