vscode中setting.json配置文件配置詳解
更新時間:2023年09月19日 09:58:24 作者:爪哇丨大神
這篇文章主要給大家介紹了關于vscode中setting.json配置文件配置的相關資料,VSCode中的setting.json文件用于存儲用戶自定義的配置設置,文中給出了詳細的代碼示例,需要的朋友可以參考下
vscode中的setting.json配置文件配置詳解
話不多說上配置文件
大家按需復制到自己的setting.json配置文件中即可
[{ // 控制是否在編輯器中顯示 CodeLens。 "diffEditor.codeLens": false, // 啟用后,差異編輯器將忽略前導空格或尾隨空格中的更改。 "diffEditor.ignoreTrimWhitespace": true, // 超時(以毫秒為單位),之后將取消差異計算。使用0表示沒有超時。 "diffEditor.maxComputationTime": 5000, // 要為其計算差異的最大文件大小(MB)。使用 0 表示無限制。 "diffEditor.maxFileSize": 50, // 控制差異編輯器是否為添加/刪除的更改顯示 +/- 指示符號。 "diffEditor.renderIndicators": true, // 控制差異編輯器的顯示方式是并排還是內(nèi)聯(lián)。 "diffEditor.renderSideBySide": true, // // - off: 永不換行。 // - on: 將在視區(qū)寬度處換行。 // - inherit: 將根據(jù) `editor.wordWrap` 設置換行。 "diffEditor.wordWrap": "inherit", // 控制是否應在遇到提交字符時接受建議。例如,在 JavaScript 中,半角分號 (`;`) 可以為提交字符,能夠在接受建議的同時鍵入該字符。 "editor.acceptSuggestionOnCommitCharacter": true, // 控制除了 `Tab` 鍵以外, `Enter` 鍵是否同樣可以接受建議。這能減少“插入新行”和“接受建議”命令之間的歧義。 // - on // - smart: 僅當建議包含文本改動時才可使用 `Enter` 鍵進行接受。 // - off "editor.acceptSuggestionOnEnter": "on", // 控制編輯器中可由屏幕閱讀器一次讀出的行數(shù)。我們檢測到屏幕閱讀器時,會自動將默認值設置為 500。警告: 如果行數(shù)大于默認值,可能會影響性能。 "editor.accessibilityPageSize": 10, // 控制編輯器是否應在對屏幕閱讀器進行了優(yōu)化的模式下運行。設置為“開”將禁用自動換行。 // - auto: 編輯器將使用平臺 API 以檢測是否附加了屏幕閱讀器。 // - on: 編輯器將針對與屏幕閱讀器搭配使用進行永久優(yōu)化。將禁用自動換行。 // - off: 編輯器將不再對屏幕閱讀器的使用進行優(yōu)化。 "editor.accessibilitySupport": "auto", // 控制編輯器是否在左括號后自動插入右括號。 // - always // - languageDefined: 使用語言配置確定何時自動閉合括號。 // - beforeWhitespace: 僅當光標位于空白字符左側(cè)時,才自動閉合括號。 // - never "editor.autoClosingBrackets": "languageDefined", // 控制在刪除時編輯器是否應刪除相鄰的右引號或右方括號。 // - always // - auto: 僅在自動插入時才刪除相鄰的右引號或右括號。 // - never "editor.autoClosingDelete": "auto", // 控制編輯器是否應改寫右引號或右括號。 // - always // - auto: 僅在自動插入時才改寫右引號或右括號。 // - never "editor.autoClosingOvertype": "auto", // 控制編輯器是否在左引號后自動插入右引號。 // - always // - languageDefined: 使用語言配置確定何時自動閉合引號。 // - beforeWhitespace: 僅當光標位于空白字符左側(cè)時,才自動閉合引號。 // - never "editor.autoClosingQuotes": "languageDefined", // 控制編輯器是否應在用戶鍵入、粘貼、移動或縮進行時自動調(diào)整縮進。 // - none: 編輯器不會自動插入縮進。 // - keep: 編輯器將保留當前行的縮進。 // - brackets: 編輯器將保留當前行的縮進并遵循語言定義的括號。 // - advanced: 編輯器將保留當前行的縮進、使用語言定義的括號并調(diào)用語言定義的特定 onEnterRules。 // - full: 編輯器將保留當前行的縮進,使用語言定義的括號,調(diào)用由語言定義的特殊輸入規(guī)則,并遵循由語言定義的縮進規(guī)則。 "editor.autoIndent": "full", // 控制在鍵入引號或方括號時,編輯器是否應自動將所選內(nèi)容括起來。 // - languageDefined: 使用語言配置確定何時自動包住所選內(nèi)容。 // - quotes: 使用引號而非括號來包住所選內(nèi)容。 // - brackets: 使用括號而非引號來包住所選內(nèi)容。 // - never "editor.autoSurround": "languageDefined", // 控制是否已啟用括號對著色。使用 `workbench.colorCustomizations` 替代括號高亮顏色。 "editor.bracketPairColorization.enabled": true, // 控制每個方括號類型是否具有自己的獨立顏色池。 "editor.bracketPairColorization.independentColorPoolPerBracketType": false, // 在保存時運行的代碼操作類型。 "editor.codeActionsOnSave": {}, // 控制是否在編輯器中顯示 CodeLens。 "editor.codeLens": true, // 控制 CodeLens 的字體系列。 "editor.codeLensFontFamily": "", // 控制 CodeLens 的字號(以像素為單位)。設置為 `0` 時,將使用 90% 的 `editor.fontSize`。 "editor.codeLensFontSize": 0, // 控制編輯器是否顯示內(nèi)聯(lián)顏色修飾器和顏色選取器。 "editor.colorDecorators": true, // 啟用使用鼠標和鍵進行列選擇。 "editor.columnSelection": false, // 控制在對行注釋執(zhí)行切換、添加或刪除操作時,是否應忽略空行。 "editor.comments.ignoreEmptyLines": true, // 控制在注釋時是否插入空格字符。 "editor.comments.insertSpace": true, // 控制在復制時是否同時復制語法高亮。 "editor.copyWithSyntaxHighlighting": true, // 控制光標的動畫樣式。 "editor.cursorBlinking": "blink", // 控制是否啟用平滑插入動畫。 "editor.cursorSmoothCaretAnimation": false, // 控制光標樣式。 "editor.cursorStyle": "line", // 控制光標周圍可見的前置行和尾隨行的最小數(shù)目。在其他一些編輯器中稱為 "scrollOff" 或 "scrollOffset"。 "editor.cursorSurroundingLines": 0, // 控制何時應強制執(zhí)行"光標環(huán)繞行"。 // - default: 僅當通過鍵盤或 API 觸發(fā)時,才會強制執(zhí)行"光標環(huán)繞行"。 // - all: 始終強制執(zhí)行 "cursorSurroundingLines" "editor.cursorSurroundingLinesStyle": "default", // 當 `editor.cursorStyle` 設置為 `line` 時,控制光標的寬度。 "editor.cursorWidth": 0, // 定義一個默認格式化程序, 該格式化程序優(yōu)先于所有其他格式化程序設置。必須是提供格式化程序的擴展的標識符。 // - null: 沒有 // - formulahendry.code-runner: Run C, C++, Java, JS, PHP, Python, Perl, Ruby, Go, Lua, Groovy, PowerShell, CMD, BASH, F#, C#, VBScript, TypeScript, CoffeeScript, Scala, Swift, Julia, Crystal, OCaml, R, AppleScript, Elixir, VB.NET, Clojure, Haxe, Obj-C, Rust, Racket, Scheme, AutoHotkey, AutoIt, Kotlin, Dart, Pascal, Haskell, Nim, D, Lisp, Kit, V, SCSS, Sass, CUDA, Less, Fortran, Ring, Standard ML // - vscode.css-language-features: 為 CSS、LESS 和 SCSS 文件提供豐富的語言支持。 // - vscode.html-language-features: 為 HTML 和 Handlebar 文件提供豐富的語言支持 // - vscode.json-language-features: 為 JSON 文件提供豐富的語言支持 // - ms-toolsai.jupyter: Jupyter notebook support, interactive programming and computing that supports Intellisense, debugging and more. // - vscode.markdown-language-features: 為 Markdown 提供豐富的語言支持。 // - vscode.php-language-features: 為 PHP 文件提供豐富的語言支持。 // - ms-python.python: IntelliSense (Pylance), Linting, Debugging (multi-threaded, remote), Jupyter Notebooks, code formatting, refactoring, unit tests, and more. // - ms-vscode.references-view: Reference Search results as separate, stable view in the sidebar // - vscode.search-result: 為選項卡搜索結果中提供語法突出顯示和語言功能。 // - foxundermoon.shell-format: shellscript、Dockerfile、properties、gitignore、dotenv、hosts、jvmoptions... DocumentFormat // - vscode.typescript-language-features: 為 JavaScript 和 TypeScript 提供豐富的語言支持。 // - ms-python.vscode-pylance: A performant, feature-rich language server for Python in VS Code // - nadako.vshaxe: Haxe language support // - vscode.configuration-editing: 在配置文件 (如設置、啟動和擴展推薦文件) 中提供高級 IntelliSense、自動修復等功能 // - vscode.debug-auto-launch: 當 node-debug 擴展未啟用時提供自動附加的輔助程序。 // - vscode.debug-server-ready: 如果正在調(diào)試的服務器已準備就緒,在瀏覽器中打開 URI。 // - vscode.emmet: 適用于 VS Code 的 Emmet 支持 // - vscode.extension-editing: 在創(chuàng)建擴展時提供 linting 功能。 // - vscode.git: Git 源代碼管理集成 // - vscode.git-base: Git 靜態(tài)貢獻和選取器。 // - vscode.github: 適用于 VS Code 的 GitHub 功能 // - vscode.github-authentication: GitHub 身份驗證提供程序 // - vscode.grunt: Extension to add Grunt capabilities to VS Code. // - vscode.gulp: 向 VSCode 提供 Gulp 功能的擴展。 // - vscode.image-preview: 提供 VS Code的內(nèi)置圖像預覽 // - vscode.ipynb: 為打開和讀取 Jupyter 的 .ipynb 筆記本文件提供基本支持 // - vscode.jake: 向 VS Code 提供 Jake 功能的擴展。 // - ms-vscode.js-debug: An extension for debugging Node.js programs and Chrome. // - ms-vscode.js-debug-companion: Companion extension to js-debug that provides capability for remote debugging // - ms-toolsai.jupyter-renderers: Renderers for Jupyter Notebooks (with plotly, vega, gif, png, svg, jpeg and other such outputs) // - vscode.markdown-math: 在筆記本中向 Markdown 添加數(shù)學支持。 // - PKief.material-icon-theme: Material Design Icons for Visual Studio Code // - vscode.merge-conflict: 為內(nèi)聯(lián)合并沖突提供高亮和命令。 // - vscode.microsoft-authentication: Microsoft 身份驗證提供程序 // - vscode.npm: 為 npm 腳本提供任務支持的擴展。 // - ms-vscode-remote.remote-wsl-recommender: Recommends using the Windows Subsystem for Linux (WSL) and the Remote WSL extension. // - vscode.simple-browser: 一個非常基本的內(nèi)置 Web 視圖,用于顯示 Web 內(nèi)容。 // - ms-vscode.vscode-js-profile-table: Text visualizer for profiles taken from the JavaScript debugger "editor.defaultFormatter": null, // 控制"轉(zhuǎn)到定義"鼠標手勢是否始終打開預覽小部件。 "editor.definitionLinkOpensInPeek": false, // 控制是否在打開文件時,基于文件內(nèi)容自動檢測 `editor.tabSize#` 和 `#editor.insertSpaces`。 "editor.detectIndentation": true, // 控制在編輯器中是否允許通過拖放來移動選中內(nèi)容。 "editor.dragAndDrop": true, // 控制在沒有選擇內(nèi)容時進行復制是否復制當前行。 "editor.emptySelectionClipboard": true, // 按下"Alt"時滾動速度倍增。 "editor.fastScrollSensitivity": 5, // 控制 "查找小部件" 是否應在編輯器頂部添加額外的行。如果為 true, 則可以在 "查找小工具" 可見時滾動到第一行之外。 "editor.find.addExtraSpaceOnTop": true, // 控制自動打開“在選定內(nèi)容中查找”的條件。 // - never: 從不自動打開“在選定內(nèi)容中查找”(默認)。 // - always: 始終自動打開“在選定內(nèi)容中查找”。 // - multiline: 選擇多行內(nèi)容時,自動打開“在選定內(nèi)容中查找”。 "editor.find.autoFindInSelection": "never", // 控制在鍵入時光標是否應跳轉(zhuǎn)以查找匹配項。 "editor.find.cursorMoveOnType": true, // 控制在找不到其他匹配項時,是否自動從開頭(或結尾)重新開始搜索。 "editor.find.loop": true, // 控制是否將編輯器選中內(nèi)容作為搜索詞填入到查找小組件中。 // - never: 切勿為編輯器選擇中的搜索字符串設定種子。 // - always: 始終為編輯器選擇中的搜索字符串設定種子,包括光標位置的字詞。 // - selection: 僅為編輯器選擇中的搜索字符串設定種子。 "editor.find.seedSearchStringFromSelection": "always", // 控制編輯器是否啟用了代碼折疊。 "editor.folding": true, // 控制編輯器是否應突出顯示折疊范圍。 "editor.foldingHighlight": true, // 控制編輯器是否自動折疊導入范圍。 "editor.foldingImportsByDefault": false, // 可折疊區(qū)域的最大數(shù)量。如果當前源具有大量可折疊區(qū)域,那么增加此值可能會導致編輯器的響應速度變慢。 "editor.foldingMaximumRegions": 5000, // 控制計算折疊范圍的策略。 // - auto: 使用特定于語言的折疊策略(如果可用),否則使用基于縮進的策略。 // - indentation: 使用基于縮進的折疊策略。 "editor.foldingStrategy": "auto", // 控制字體系列。 "editor.fontFamily": "Consolas, 'Courier New', monospace", // 配置字體連字或字體特性??梢允怯糜趩⒂?禁用連字的布爾值,或用于設置 CSS "font-feature-settings" 屬性值的字符串。 "editor.fontLigatures": false, // 控制字體大小(像素)。 "editor.fontSize": 14, // 控制字體粗細。接受關鍵字“正常”和“加粗”,或者接受介于 1 至 1000 之間的數(shù)字。 "editor.fontWeight": "normal", // 控制編輯器是否自動格式化粘貼的內(nèi)容。格式化程序必須可用,并且能針對文檔中的某一范圍進行格式化。 "editor.formatOnPaste": false, // 在保存時格式化文件。格式化程序必須可用,延遲后文件不能保存,并且編輯器不能關閉。 "editor.formatOnSave": false, // 控制在保存時設置格式是設置整個文件格式還是僅設置修改內(nèi)容的格式。僅當 "#editor.formatOnSave#" 處于啟用狀態(tài)時適用。 // - file: 設置整個文件的格式。 // - modifications: 格式修改(需要源代碼管理)。 // - modificationsIfAvailable: 將嘗試只對修改進行格式化(需要源代碼管理)。如果無法使用源代碼管理,則將格式化整個文件。 "editor.formatOnSaveMode": "file", // 控制編輯器在鍵入一行后是否自動格式化該行。 "editor.formatOnType": false, // 控制編輯器是否應呈現(xiàn)垂直字形邊距。字形邊距最常用于調(diào)試。 "editor.glyphMargin": true, // 當"轉(zhuǎn)到聲明"的結果為當前位置時將要執(zhí)行的替代命令的 ID。 "editor.gotoLocation.alternativeDeclarationCommand": "editor.action.goToReferences", // 當"轉(zhuǎn)到定義"的結果為當前位置時將要執(zhí)行的替代命令的 ID。 "editor.gotoLocation.alternativeDefinitionCommand": "editor.action.goToReferences", // 當"轉(zhuǎn)到實現(xiàn)"的結果為當前位置時將要執(zhí)行的替代命令的 ID。 "editor.gotoLocation.alternativeImplementationCommand": "", // 當"轉(zhuǎn)到引用"的結果是當前位置時正在執(zhí)行的替代命令 ID。 "editor.gotoLocation.alternativeReferenceCommand": "", // 當"轉(zhuǎn)到類型定義"的結果是當前位置時正在執(zhí)行的備用命令 ID。 "editor.gotoLocation.alternativeTypeDefinitionCommand": "editor.action.goToReferences", // 此設置已棄用,請改用單獨的設置,如"editor.editor.gotoLocation.multipleDefinitions"或"editor.editor.gotoLocation.multipleImplementations"。 // "editor.gotoLocation.multiple": null, // 控制存在多個目標位置時"轉(zhuǎn)到聲明"命令的行為。 // - peek: 顯示結果的預覽視圖 (默認值) // - gotoAndPeek: 轉(zhuǎn)到主結果并顯示預覽視圖 // - goto: 轉(zhuǎn)到主結果,并對其他人啟用防偷窺導航 "editor.gotoLocation.multipleDeclarations": "peek", // 控制存在多個目標位置時"轉(zhuǎn)到定義"命令的行為。 // - peek: 顯示結果的預覽視圖 (默認值) // - gotoAndPeek: 轉(zhuǎn)到主結果并顯示預覽視圖 // - goto: 轉(zhuǎn)到主結果,并對其他人啟用防偷窺導航 "editor.gotoLocation.multipleDefinitions": "peek", // 控制存在多個目標位置時"轉(zhuǎn)到實現(xiàn)"命令的行為。 // - peek: 顯示結果的預覽視圖 (默認值) // - gotoAndPeek: 轉(zhuǎn)到主結果并顯示預覽視圖 // - goto: 轉(zhuǎn)到主結果,并對其他人啟用防偷窺導航 "editor.gotoLocation.multipleImplementations": "peek", // 控制存在多個目標位置時"轉(zhuǎn)到引用"命令的行為。 // - peek: 顯示結果的預覽視圖 (默認值) // - gotoAndPeek: 轉(zhuǎn)到主結果并顯示預覽視圖 // - goto: 轉(zhuǎn)到主結果,并對其他人啟用防偷窺導航 "editor.gotoLocation.multipleReferences": "peek", // 控制存在多個目標位置時"轉(zhuǎn)到類型定義"命令的行為。 // - peek: 顯示結果的預覽視圖 (默認值) // - gotoAndPeek: 轉(zhuǎn)到主結果并顯示預覽視圖 // - goto: 轉(zhuǎn)到主結果,并對其他人啟用防偷窺導航 "editor.gotoLocation.multipleTypeDefinitions": "peek", // 控制是否啟用括號對指南。 // - true: 啟用括號對參考線。 // - active: 僅為活動括號對啟用括號對參考線。 // - false: 禁用括號對參考線。 "editor.guides.bracketPairs": false, // 控制是否啟用水平括號對指南。 // - true: 啟用水平參考線作為垂直括號對參考線的添加項。 // - active: 僅為活動括號對啟用水平參考線。 // - false: 禁用水平括號對參考線。 "editor.guides.bracketPairsHorizontal": "active", // 控制編輯器是否應突出顯示活動的括號對。 "editor.guides.highlightActiveBracketPair": true, // 控制是否突出顯示編輯器中活動的縮進參考線。 // - true: 突出顯示活動縮進參考線。 // - always: 突出顯示活動縮進參考線,即使突出顯示了括號參考線。 // - false: 不要突出顯示活動縮進參考線。 "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, // 在編輯器中啟用內(nèi)聯(lián)提示。 // - on: 已啟用內(nèi)嵌提示 // - onUnlessPressed: 默認情況下顯示內(nèi)嵌提示,并在按住 `Ctrl+Alt` 時隱藏 // - offUnlessPressed: 默認情況下隱藏內(nèi)嵌提示,并在按住 `Ctrl+Alt` 時顯示 // - off: 已禁用內(nèi)嵌提示 "editor.inlayHints.enabled": "on", // 在編輯器中控制內(nèi)嵌提示的字體系列。設置為空時,使用 `editor.fontFamily`。 "editor.inlayHints.fontFamily": "", // 控制編輯器中內(nèi)嵌提示的字號。當配置的值小于 `5` 或大于編輯器字號時,默認使用 `editor.fontSize`。 "editor.inlayHints.fontSize": 0, // 控制是否在編輯器中自動顯示內(nèi)聯(lián)建議。 "editor.inlineSuggest.enabled": true, // 按 `Tab` 鍵時插入空格。該設置在 `editor.detectIndentation` 啟用時根據(jù)文件內(nèi)容可能會被覆蓋。 "editor.insertSpaces": true, // 定義增加和減少縮進的括號。 "editor.language.brackets": null, // 如果啟用方括號對著色,則按照其嵌套級別定義已著色的方括號對。 "editor.language.colorizedBracketPairs": null, // 對大型文件進行特殊處理,禁用某些內(nèi)存密集型功能。 "editor.largeFileOptimizations": true, // 控制字母間距(像素)。 "editor.letterSpacing": 0, // 在編輯器中啟用代碼操作小燈泡提示。 "editor.lightbulb.enabled": true, // 控制行高。 // - 使用 0 根據(jù)字號自動計算行高。 // - 介于 0 和 8 之間的值將用作字號的乘數(shù)。 // - 大于或等于 8 的值將用作有效值。 "editor.lineHeight": 0, // 控制行號的顯示。 // - off: 不顯示行號。 // - on: 將行號顯示為絕對行數(shù)。 // - relative: 將行號顯示為與光標相隔的行數(shù)。 // - interval: 每 10 行顯示一次行號。 "editor.lineNumbers": "on", // 控制編輯器是否已啟用鏈接編輯。相關符號(如 HTML 標記)在編輯時進行更新,具體由語言而定。 "editor.linkedEditing": false, // 控制是否在編輯器中檢測鏈接并使其可被點擊。 "editor.links": true, // 突出顯示匹配的括號。 "editor.matchBrackets": "always", // 由于性能原因,超過這個長度的行將不會被標記 "editor.maxTokenizationLineLength": 20000, // 控制是否顯示縮略圖。 "editor.minimap.enabled": true, // 限制縮略圖的寬度,控制其最多顯示的列數(shù)。 "editor.minimap.maxColumn": 120, // 渲染每行的實際字符,而不是色塊。 "editor.minimap.renderCharacters": true, // 在迷你地圖中繪制的內(nèi)容比例: 1、2 或 3。 "editor.minimap.scale": 1, // 控制何時顯示迷你地圖滑塊。 "editor.minimap.showSlider": "mouseover", // 控制在哪一側(cè)顯示縮略圖。 "editor.minimap.side": "right", // 控制迷你地圖的大小。 // - proportional: 迷你地圖的大小與編輯器內(nèi)容相同(并且可能滾動)。 // - fill: 迷你地圖將根據(jù)需要拉伸或縮小以填充編輯器的高度(不滾動)。 // - fit: 迷你地圖將根據(jù)需要縮小,永遠不會大于編輯器(不滾動)。 "editor.minimap.size": "proportional", // 對鼠標滾輪滾動事件的 `deltaX` 和 `deltaY` 乘上的系數(shù)。 "editor.mouseWheelScrollSensitivity": 1, // 按住 `Ctrl` 鍵并滾動鼠標滾輪時對編輯器字體大小進行縮放。 "editor.mouseWheelZoom": false, // 當多個光標重疊時進行合并。 "editor.multiCursorMergeOverlapping": true, // 在通過鼠標添加多個光標時使用的修改鍵?!稗D(zhuǎn)到定義”和“打開鏈接”功能所需的鼠標動作將會相應調(diào)整,不與多光標修改鍵沖突。[閱讀詳細信息](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier)。 // - ctrlCmd: 映射為 `Ctrl` (Windows 和 Linux) 或 `Command` (macOS)。 // - alt: 映射為 `Alt` (Windows 和 Linux) 或 `Option` (macOS)。 "editor.multiCursorModifier": "alt", // 控制粘貼時粘貼文本的行計數(shù)與光標計數(shù)相匹配。 // - spread: 每個光標粘貼一行文本。 // - full: 每個光標粘貼全文。 "editor.multiCursorPaste": "spread", // 控制編輯器是否突出顯示語義符號的匹配項。 "editor.occurrencesHighlight": true, // 控制是否在概覽標尺周圍繪制邊框。 "editor.overviewRulerBorder": true, // 控制編輯器的底邊和最后一行之間的間距量。 "editor.padding.bottom": 0, // 控制編輯器的頂邊和第一行之間的間距量。 "editor.padding.top": 0, // 控制參數(shù)提示菜單在到達列表末尾時進行循環(huán)還是關閉。 "editor.parameterHints.cycle": false, // 在輸入時顯示含有參數(shù)文檔和類型信息的小面板。 "editor.parameterHints.enabled": true, // 控制是將焦點放在內(nèi)聯(lián)編輯器上還是放在預覽小部件中的樹上。 // - tree: 打開速覽時聚焦樹 // - editor: 打開預覽時將焦點放在編輯器上 "editor.peekWidgetDefaultFocus": "tree", // 控制是否在鍵入時自動顯示建議。 "editor.quickSuggestions": { "other": "on", "comments": "off", "strings": "off" }, // 控制顯示快速建議前的等待時間 (毫秒)。 "editor.quickSuggestionsDelay": 10, // 啟用/禁用重命名之前預覽更改的功能 "editor.rename.enablePreview": true, // 已棄用,請改用 "editor.linkedEditing"。 // 控制是否在編輯器中輸入時自動重命名。 "editor.renameOnType": false, // 控制編輯器是否顯示控制字符。 "editor.renderControlCharacters": true, // 當文件以換行符結束時, 呈現(xiàn)最后一行的行號。 "editor.renderFinalNewline": true, // 控制編輯器的當前行進行高亮顯示的方式。 // - none // - gutter // - line // - all: 同時突出顯示導航線和當前行。 "editor.renderLineHighlight": "line", // 控制編輯器是否僅在焦點在編輯器時突出顯示當前行。 "editor.renderLineHighlightOnlyWhenFocus": false, // 控制編輯器在空白字符上顯示符號的方式。 // - none // - boundary: 呈現(xiàn)空格字符(字詞之間的單個空格除外)。 // - selection: 僅在選定文本上呈現(xiàn)空白字符。 // - trailing: 僅呈現(xiàn)尾隨空格字符。 // - all "editor.renderWhitespace": "selection", // 控制選區(qū)是否有圓角。 "editor.roundedSelection": true, // 在一定數(shù)量的等寬字符后顯示垂直標尺。輸入多個值,顯示多個標尺。若數(shù)組為空,則不繪制標尺。 "editor.rulers": [], // 控制水平滾動條的可見性。 // - auto: 水平滾動條僅在必要時可見。 // - visible: 水平滾動條將始終可見。 // - hidden: 水平滾動條將始終隱藏。 "editor.scrollbar.horizontal": "auto", // 水平滾動條的高度。 "editor.scrollbar.horizontalScrollbarSize": 12, // 控制單擊按頁滾動還是跳轉(zhuǎn)到單擊位置。 "editor.scrollbar.scrollByPage": false, // 控制垂直滾動條的可見性。 // - auto: 垂直滾動條僅在必要時可見。 // - visible: 垂直滾動條將始終可見。 // - hidden: 垂直滾動條將始終隱藏。 "editor.scrollbar.vertical": "auto", // 垂直滾動條的寬度。 "editor.scrollbar.verticalScrollbarSize": 14, // 控制編輯器水平滾動時可以超過范圍的字符數(shù)。 "editor.scrollBeyondLastColumn": 5, // 控制編輯器是否可以滾動到最后一行之后。 "editor.scrollBeyondLastLine": true, // 同時垂直和水平滾動時,僅沿主軸滾動。在觸控板上垂直滾動時,可防止水平漂移。 "editor.scrollPredominantAxis": true, // 控制編輯器是否應突出顯示與所選內(nèi)容類似的匹配項。 "editor.selectionHighlight": true, // 控制是否為支持它的語言顯示語義突出顯示。 // - true: 對所有顏色主題啟用語義突出顯示。 // - false: 對所有顏色主題禁用語義突出顯示。 // - configuredByTheme: 語義突出顯示是由當前顏色主題的 "semanticHighlighting" 設置配置的。 "editor.semanticHighlighting.enabled": "configuredByTheme", // 從當前所選顏色主題重寫編輯器語義標記顏色和樣式。 "editor.semanticTokenColorCustomizations": {}, // 控制加刪除線被棄用的變量。 "editor.showDeprecated": true, // 控制何時顯示行號槽上的折疊控件。 // - always: 始終顯示折疊控件。 // - mouseover: 僅在鼠標位于裝訂線上方時顯示折疊控件。 "editor.showFoldingControls": "mouseover", // 控制是否淡化未使用的代碼。 "editor.showUnused": true, // 是否應始終選擇前導和尾隨空格。 "editor.smartSelect.selectLeadingAndTrailingWhitespace": true, // 控制編輯器是否使用動畫滾動。 "editor.smoothScrolling": false, // 控制代碼片段是否與其他建議一起顯示及其排列的位置。 // - top: 在其他建議上方顯示代碼片段建議。 // - bottom: 在其他建議下方顯示代碼片段建議。 // - inline: 在其他建議中穿插顯示代碼片段建議。 // - none: 不顯示代碼片段建議。 "editor.snippetSuggestions": "inline", // 在速覽編輯器中,即使雙擊其中的內(nèi)容或者按 `Esc` 鍵,也保持其打開狀態(tài)。 "editor.stablePeek": false, // 在使用空格進行縮進時模擬制表符的選擇行為。所選內(nèi)容將始終使用制表符停止位。 "editor.stickyTabStops": false, // 此設置已棄用,請改用單獨的設置,如"editor.suggest.showKeywords"或"editor.suggest.showSnippets"。 // "editor.suggest.filteredTypes": {}, // 控制對建議的篩選和排序是否考慮小的拼寫錯誤。 "editor.suggest.filterGraceful": true, // 控制接受補全時是否覆蓋單詞。請注意,這取決于擴展選擇使用此功能。 // - insert: 插入建議而不覆蓋光標右側(cè)的文本。 // - replace: 插入建議并覆蓋光標右側(cè)的文本。 "editor.suggest.insertMode": "insert", // 控制排序時是否首選光標附近的字詞。 "editor.suggest.localityBonus": false, // 此設置已棄用?,F(xiàn)在可以調(diào)整建議小組件的大小。 // "editor.suggest.maxVisibleSuggestions": 0, // 控制是否在編輯器中預覽建議結果。 "editor.suggest.preview": false, // 控制是否在多個工作區(qū)和窗口間共享記憶的建議選項(需要 `editor.suggestSelection`)。 "editor.suggest.shareSuggestSelections": false, // 啟用后,IntelliSense 將顯示“類”建議。 "editor.suggest.showClasses": true, // 啟用后,IntelliSense 將顯示“顏色”建議。 "editor.suggest.showColors": true, // 啟用后,IntelliSense 將顯示“常量”建議。 "editor.suggest.showConstants": true, // 啟用后,IntelliSense 將顯示“構造函數(shù)”建議。 "editor.suggest.showConstructors": true, // 啟用后,IntelliSense 將顯示“自定義顏色”建議。 "editor.suggest.showCustomcolors": true, // 啟用后,IntelliSense 將顯示“已啟用”建議。 "editor.suggest.showDeprecated": true, // 啟用后,IntelliSense 將顯示 "enumMember" 建議。 "editor.suggest.showEnumMembers": true, // 啟用后,IntelliSense 將顯示“枚舉”建議。 "editor.suggest.showEnums": true, // 啟用后,IntelliSense 將顯示“事件”建議。 "editor.suggest.showEvents": true, // 啟用后,IntelliSense 將顯示“字段”建議。 "editor.suggest.showFields": true, // 啟用后,IntelliSense 將顯示“文件”建議。 "editor.suggest.showFiles": true, // 啟用后,IntelliSense 將顯示“文件夾”建議。 "editor.suggest.showFolders": true, // 啟用后,IntelliSense 將顯示“函數(shù)”建議。 "editor.suggest.showFunctions": true, // 控制是否在建議中顯示或隱藏圖標。 "editor.suggest.showIcons": true, // 控制建議詳細信息是隨標簽一起顯示還是僅顯示在詳細信息小組件中 "editor.suggest.showInlineDetails": true, // 啟用后,IntelliSense 將顯示“接口”建議。 "editor.suggest.showInterfaces": true, // 啟用后,IntelliSense 將顯示"問題"建議。 "editor.suggest.showIssues": true, // 啟用后,IntelliSense 將顯示“關鍵字”建議。 "editor.suggest.showKeywords": true, // 啟用后,IntelliSense 將顯示“方法”建議。 "editor.suggest.showMethods": true, // 啟用后,IntelliSense 將顯示“模塊”建議。 "editor.suggest.showModules": true, // 啟用后,IntelliSense 將顯示“操作符”建議。 "editor.suggest.showOperators": true, // 啟用后,IntelliSense 將顯示“屬性”建議。 "editor.suggest.showProperties": true, // 啟用后,IntelliSense 將顯示“參考”建議。 "editor.suggest.showReferences": true, // 啟用后,IntelliSense 將顯示“片段”建議。 "editor.suggest.showSnippets": true, // 控制建議小部件底部的狀態(tài)欄的可見性。 "editor.suggest.showStatusBar": false, // 啟用后,IntelliSense 將顯示“結構”建議。 "editor.suggest.showStructs": true, // 啟用后,IntelliSense 將顯示 "typeParameter" 建議。 "editor.suggest.showTypeParameters": true, // 啟用后,IntelliSense 將顯示“單位”建議。 "editor.suggest.showUnits": true, // 啟用后,IntelliSense 將顯示"用戶"建議。 "editor.suggest.showUsers": true, // 啟用后,IntelliSense 將顯示“值”建議。 "editor.suggest.showValues": true, // 啟用后,IntelliSense 將顯示“變量”建議。 "editor.suggest.showVariables": true, // 啟用后,IntelliSense 將顯示“文本”建議。 "editor.suggest.showWords": true, // 控制活動代碼段是否阻止快速建議。 "editor.suggest.snippetsPreventQuickSuggestions": true, // 建議小部件的字號。如果設置為 `0`,則使用 `editor.fontSize` 的值。 "editor.suggestFontSize": 0, // 建議小部件的行高。如果設置為 `0`,則使用 `editor.lineHeight` 的值。最小值為 8。 "editor.suggestLineHeight": 0, // 控制在鍵入觸發(fā)字符后是否自動顯示建議。 "editor.suggestOnTriggerCharacters": true, // 控制在建議列表中如何預先選擇建議。 // - first: 始終選擇第一個建議。 // - recentlyUsed: 選擇最近的建議,除非進一步鍵入選擇其他項。例如 `console. -> console.log`,因為最近補全過 `log`。 // - recentlyUsedByPrefix: 根據(jù)之前補全過的建議的前綴來進行選擇。例如,`co -> console`、`con -> const`。 "editor.suggestSelection": "first", // 啟用 Tab 補全。 // - on: 在按下 Tab 鍵時進行 Tab 補全,將插入最佳匹配建議。 // - off: 禁用 Tab 補全。 // - onlySnippets: 在前綴匹配時進行 Tab 補全。在 "quickSuggestions" 未啟用時體驗最好。 "editor.tabCompletion": "off", // 一個制表符等于的空格數(shù)。在 `editor.detectIndentation` 啟用時,根據(jù)文件內(nèi)容,該設置可能會被覆蓋。 "editor.tabSize": 4, // 替代當前所選顏色主題中的編輯器語法顏色和字形。 "editor.tokenColorCustomizations": {}, // 刪除自動插入的尾隨空白符號。 "editor.trimAutoWhitespace": true, // 控制單擊已折疊的行后面的空內(nèi)容是否會展開該行。 "editor.unfoldOnClickAfterEndOfLine": false, // 定義未突出顯示的允許字符。 "editor.unicodeHighlight.allowedCharacters": {}, // 未突出顯示在允許區(qū)域設置中常見的 Unicode 字符。 "editor.unicodeHighlight.allowedLocales": { "_os": true, "_vscode": true }, // 控制是否突出顯示可能與基本 ASCII 字符混淆的字符,但當前用戶區(qū)域設置中常見的字符除外。 "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: 自動刪除異常的行終止符。 // - off: 忽略異常的行終止符。 // - prompt: 提示刪除異常的行終止符。 "editor.unusualLineTerminators": "prompt", // 根據(jù)制表位插入和刪除空格。 "editor.useTabStops": true, // 控制是否根據(jù)文檔中的文字計算自動完成列表。 "editor.wordBasedSuggestions": true, // 控制通過哪些文檔計算基于字詞的補全。 // - currentDocument: 僅建議活動文檔中的字詞。 // - matchingDocuments: 建議使用同一語言的所有打開的文檔中的字詞。 // - allDocuments: 建議所有打開的文檔中的字詞。 "editor.wordBasedSuggestionsMode": "matchingDocuments", // 執(zhí)行單詞相關的導航或操作時作為單詞分隔符的字符。 "editor.wordSeparators": "`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?", // 控制折行的方式。 // - off: 永不換行。 // - on: 將在視區(qū)寬度處換行。 // - wordWrapColumn: 在 `editor.wordWrapColumn` 處折行。 // - bounded: 在視區(qū)寬度和 `editor.wordWrapColumn` 中的較小值處折行。 "editor.wordWrap": "off", // 在 `editor.wordWrap` 為 `wordWrapColumn` 或 `bounded` 時,控制編輯器的折行列。 "editor.wordWrapColumn": 80, // 控制折行的縮進。 // - none: 沒有縮進。折行從第 1 列開始。 // - same: 折行的縮進量與其父級相同。 // - indent: 折行的縮進量比其父級多 1。 // - deepIndent: 折行的縮進量比其父級多 2。 "editor.wrappingIndent": "same", // 控制計算包裹點的算法。 // - simple: 假定所有字符的寬度相同。這是一種快速算法,適用于等寬字體和某些字形寬度相等的文字(如拉丁字符)。 // - advanced: 將包裝點計算委托給瀏覽器。這是一個緩慢算法,可能會導致大型文件被凍結,但它在所有情況下都正常工作。 "editor.wrappingStrategy": "simple" }, { // 控制是否在“源代碼管理”視圖中始終顯示內(nèi)聯(lián)操作。 "scm.alwaysShowActions": false, // 控制存儲庫是否應在源代碼管理視圖中始終可見。 "scm.alwaysShowRepositories": false, // 控制源代碼管理視圖在打開文件時是否應自動顯示和選擇文件。 "scm.autoReveal": true, // 控制活動欄上源代碼管理圖標上的計數(shù)鎖屏提醒。 // - all: 顯示所有源代碼管理提供程序計數(shù)鎖屏提醒的總和。 // - focused: 顯示焦點源控制提供程序的計數(shù)標記。 // - off: 禁用源代碼管理計數(shù)徽章。 "scm.countBadge": "all", // 控制默認的源代碼管理存儲庫視圖模式。 // - tree: 將存儲庫更改顯示為樹。 // - list: 將存儲庫更改顯示為列表。 "scm.defaultViewMode": "list", // 控制默認的源代碼管理存儲庫在被視為列表時的更改排序順序。 // - name: 按文件名對存儲庫更改進行排序。 // - path: 按路徑對存儲庫更改進行排序。 // - status: 按源代碼管理狀態(tài)對存儲庫更改進行排序。 "scm.defaultViewSortKey": "path", // 控制編輯器中差異的顯示效果。 // - all: 顯示所有可用位置中的差異裝飾。 // - gutter: 僅在編輯器行號槽中顯示差異裝飾。 // - overview: 僅在概覽標尺中顯示差異裝飾。 // - minimap: 僅在縮略圖中顯示差異裝飾。 // - none: 不要顯示差異裝飾。 "scm.diffDecorations": "all", // 控制源代碼管理差異裝訂線修飾的行為。 // - diff: 單擊時顯示內(nèi)聯(lián)差異一覽視圖。 // - none: 不執(zhí)行任何操作。 "scm.diffDecorationsGutterAction": "diff", // 控制是否將模式用于裝訂線中的差異修飾。 "scm.diffDecorationsGutterPattern": { "added": false, "modified": true }, // 控制行號槽中源代碼管理差異裝飾器的可見性。 // - always: 始終顯示行號槽中的差異裝飾器。 // - hover: 僅在懸停時顯示行號槽中的差異裝飾器。 "scm.diffDecorationsGutterVisibility": "always", // 控制裝訂線中差異修飾的寬度(px)(已添加或已修改)。 "scm.diffDecorationsGutterWidth": 3, // 控制在源代碼管理差異裝訂線修飾中是否忽略前導空格和尾隨空格。 // - true: 忽略前導空格和尾隨空格。 // - false: 不要忽略前導空格和尾隨空格。 // - inherit: 繼承自 `diffEditor.ignoreTrimWhitespace`。 "scm.diffDecorationsIgnoreTrimWhitespace": "false", // 控制輸入消息的字體。將 `default` 用于工作臺用戶界面字體系列,將 `editor` 用于 `editor.fontFamily` 的值,或者使用自定義字體系列。 "scm.inputFontFamily": "default", // 控制輸入消息的字號(以像素為單位)。 "scm.inputFontSize": 13, // 控制源代碼管理提供程序標頭的計數(shù)鎖屏提醒。僅在有多個提供程序時才顯示這些標頭。 // - hidden: 隱藏源代碼管理提供程序計數(shù)鎖屏提醒。 // - auto: 僅顯示非零時源代碼管理提供程序的計數(shù)鎖屏提醒。 // - visible: 顯示源代碼管理提供程序計數(shù)鎖屏提醒。 "scm.providerCountBadge": "hidden", // 控制源代碼管理存儲庫視圖中存儲庫的排序順序。 // - discovery time: 按發(fā)現(xiàn)時間對源代碼管理存儲庫視圖中的存儲庫排序。按所選順序?qū)υ创a管理視圖中的存儲庫排序。 // - name: 按存儲庫名稱對源代碼管理存儲庫和源代碼管理視圖中的存儲庫排序。 // - path: 按存儲庫路徑對源代碼管理存儲庫和源代碼管理視圖中的存儲庫排序。 "scm.repositories.sortOrder": "discovery time", // 控制在“源代碼管理存儲庫”部分中可見的存儲庫數(shù)。設置為 "0", 以便能夠手動調(diào)整視圖的大小。 "scm.repositories.visible": 10, // 控制是否可以在源代碼管理視圖中顯示操作按鈕。 "scm.showActionButton": true }, { // 控制在工作臺中單擊活動欄圖標時出現(xiàn)的行為。 // - toggle: 如果單擊的項已可見,則隱藏邊欄。 // - focus: 如果單擊的項已可見,則將焦點放在邊欄上。 "workbench.activityBar.iconClickBehavior": "toggle", // 控制工作臺中活動欄的可見性。 "workbench.activityBar.visible": true, // 覆蓋當前所選顏色主題的顏色。 "workbench.colorCustomizations": {}, // 指定用在工作臺中的顏色主題。 "workbench.colorTheme": "Default Dark+", // 控制命令面板中保留最近使用命令的數(shù)量。設置為 0 時禁用命令歷史功能。 "workbench.commandPalette.history": 50, // 當再次打開命令面板時,控制是否恢復上一次輸入的內(nèi)容。 "workbench.commandPalette.preserveInput": false, // 如果與列出的其中一個類型匹配的編輯器作為編輯器組中的第一個編輯器打開,且打開了多個組,則該組會自動鎖定。鎖定的組僅用于在用戶手勢(例如拖放)顯式選擇時打開編輯器,默認情況下不使用。因此,鎖定的組中的活動編輯器不太可能被意外替換為其他編輯器。 "workbench.editor.autoLockGroups": { "default": false, "workbench.input.interactive": false, "interactive": false, "workbench.editorinputs.searchEditorInput": false, "imagePreview.previewEditor": false, "vscode.markdown.preview.editor": false, "jsProfileVisualizer.cpuprofile.table": false, "jsProfileVisualizer.heapprofile.table": false, "workbench.editorinputs.sidebysideEditorInput": false, "terminalEditor": true, "jupyter-notebook": false, "mainThreadWebview-markdown.preview": false }, // 如果在居中布局中打開了超過一組編輯器,控制是否自動將寬度調(diào)整為最大寬度值。當回到只打開了一組編輯器的狀態(tài),將自動將寬度調(diào)整為原始的居中寬度值。 "workbench.editor.centeredLayoutAutoResize": true, // 控制編輯器組中最后一個選項卡關閉時這個空組的行為。若啟用,將自動關閉空組。若禁用,空組仍將保留在網(wǎng)格布局中。 "workbench.editor.closeEmptyGroups": true, // 控制在會話期間顯示已打開文件的編輯器是否應在被其他進程刪除或重命名時自動關閉。禁用此功能將使編輯器在此類事件中保持打開狀態(tài)。請注意,從應用程序內(nèi)刪除將始終關閉編輯器,且永遠不會關閉具有未保存更改的編輯器以保留數(shù)據(jù)。 "workbench.editor.closeOnFileDelete": false, // 控制編輯器文件修飾是否應使用徽章。 "workbench.editor.decorations.badges": true, // 控制編輯器文件修飾是否應使用顏色。 "workbench.editor.decorations.colors": true, // 檢測為二進制文件的默認編輯器。如果未定義,將向用戶顯示選取器。 "workbench.editor.defaultBinaryEditor": "", // 控制打開的編輯器是否顯示為預覽編輯器。預覽編輯器不會保持打開狀態(tài),在將其顯式設置為保持打開(例如通過雙擊或編輯)前將會重復使用,其文件名顯示樣式為斜體。 "workbench.editor.enablePreview": true, // 控制當從編輯器開始進行代碼導航時,編輯器是否保持為預覽狀態(tài)。預覽編輯器不會保持打開狀態(tài),在將其顯式設置為保持打開(例如通過雙擊或編輯)前將會重復使用。當 "#workbench.editor.enablePreview#" 處于禁用狀態(tài)時,將忽略此值。 "workbench.editor.enablePreviewFromCodeNavigation": false, // 控制通過 Quick Open 打開的編輯器是否顯示為預覽編輯器。預覽編輯器不會保持打開狀態(tài),在將其顯式設置為保持打開(例如通過雙擊或編輯)前將會重復使用。當 "#workbench.editor.enablePreview#" 處于禁用狀態(tài)時,將忽略此值。 "workbench.editor.enablePreviewFromQuickOpen": false, // 控制是否按最常使用的順序或從左到右的順序關閉選項卡。 "workbench.editor.focusRecentEditorAfterClose": true, // 控制是否在具有未保存更改的編輯器的選項卡上繪制頂部邊框。當禁用 `workbench.editor.showTabs` 時,會忽略此值。 "workbench.editor.highlightModifiedTabs": false, // 允許在語言檢測中使用編輯器歷史記錄。這會導致自動語言檢測偏向于最近打開的語言,并允許自動語言檢測使用較小的輸入進行操作。 "workbench.editor.historyBasedLanguageDetection": true, // 控制編輯器標簽的格式。 // - default: 顯示文件名。當啟用選項卡且在同一組內(nèi)有兩個相同名稱的文件時,將添加每個文件路徑中可以用于區(qū)分的部分。在選項卡被禁用且編輯器活動時,將顯示相對于工作區(qū)文件夾的路徑。 // - short: 在文件的目錄名之后顯示文件名。 // - medium: 在文件相對當前工作區(qū)文件夾的路徑之后顯示文件名。 // - long: 在文件的絕對路徑之后顯示文件名。 "workbench.editor.labelFormat": "default", // 控制是否自動檢測文本編輯器中的語言,除非該語言已由語言選擇器顯式設置。這也可以按語言確定范圍,以便你可以指定不希望關閉的語言。這對于像 Markdown 這樣的語言很有用,因為它通常包含可能會欺騙語言檢測的其他語言,使其認為它是嵌入語言而不是 Markdown。 "workbench.editor.languageDetection": true, // 啟用后,當編輯器語言與檢測到的內(nèi)容語言不匹配時,顯示狀態(tài)欄快速修復。 "workbench.editor.languageDetectionHints": { "untitledEditors": true, "notebookEditors": false }, // 控制打開的編輯器數(shù)是否應受限制。啟用后,最近使用較少的編輯器將關閉,以為新打開的編輯器騰出空間。 "workbench.editor.limit.enabled": false, // 控制打開的編輯器的最大數(shù)目是否應排除臟編輯器以計入配置的限制。 "workbench.editor.limit.excludeDirty": false, // 控制最大打開的編輯器的限制是否應應用于每個編輯器組或所有編輯器組。 "workbench.editor.limit.perEditorGroup": false, // 控制打開編輯器的最大數(shù)量。使用 "#workbench.editor.limit.perEditorGroup#" 設置控制每個編輯器組或跨所有組的限制。 "workbench.editor.limit.value": 10, // 允許使用鼠標按鈕四和五執(zhí)行“返回”和“前進”命令。 "workbench.editor.mouseBackForwardToNavigate": true, // 控制編輯器中“返回”和“前進”等命令的歷史導航范圍。 // - default: 瀏覽所有打開的編輯器和編輯器組。 // - editorGroup: 僅在活動編輯器組的編輯器中導航。 // - editor: 僅在活動編輯器中導航。 "workbench.editor.navigationScope": "default", // 控制編輯器打開的位置。選擇 `left` 或 `right` 可分別在當前活動編輯器的左側(cè)或右側(cè)打開。選擇 `first` (最前) 或 `last` (最后) 打開的位置與當前活動編輯器無關。 "workbench.editor.openPositioning": "right", // 控制編輯器在并排打開時(例如從資源管理器)出現(xiàn)的默認位置。默認在當前活動編輯器右側(cè)打開。若更改為 "down",則在當前活動編輯器下方打開。 "workbench.editor.openSideBySideDirection": "right", // 控制固定的編輯器選項卡的大小。固定的選項卡排在所有打開的選項卡的開頭,并且在取消固定之前,通常不會關閉。當 "#workbench.editor.showTabs#" 處于禁用狀態(tài)時,將忽略此值。 // - normal: 固定的選項卡會繼承未固定的選項卡的外觀。 // - compact: 固定的選項卡將以緊湊形式顯示,其中只包含圖標或編輯器名稱的第一個字母。 // - shrink: 固定的選項卡縮小至緊湊的固定大小,顯示編輯器名稱的各部分。 "workbench.editor.pinnedTabSizing": "normal", // 啟用后,將編輯器歷史記錄考慮在內(nèi)的語言檢測模型將獲得更高的優(yōu)先級。 "workbench.editor.preferHistoryBasedLanguageDetection": false, // 關閉編輯器后,當重新打開時,還原最后的編輯器視圖狀態(tài)(例如滾動位置)。編輯器視圖狀態(tài)存儲在每個編輯器組中,且會在組關閉時被放棄。使用 `workbench.editor.sharedViewState` 設置以跨所有編輯器組使用最后已知的視圖狀態(tài),以防未找到編輯器組之前的視圖狀態(tài)。 "workbench.editor.restoreViewState": true, // 控制是否在打開的任何可見組中顯示編輯器。如果禁用,編輯器將優(yōu)先在當前活動的編輯器組中打開。如果啟用,將會顯示在已打開的編輯器,而不是在當前活動的編輯器組中再次打開。請注意,有些情況下會忽略此設置,例如,強制編輯器在特定組中打開或當前活動組的一側(cè)時。 "workbench.editor.revealIfOpen": false, // 控制在滾動到選項卡上方時是否打開這些選項卡。默認情況下,選項卡僅在鼠標滾動時呈現(xiàn),但不打開。可通過在滾動時按住 Shift 鍵來更改滾動期間的此行為。當 "#workbench.editor.showTabs#" 處于禁用狀態(tài)時,將忽略此值。 "workbench.editor.scrollToSwitchTabs": false, // 跨所有編輯器組保留最新的編輯器視圖狀態(tài)(例如滾動位置),并在未找到編輯器組的特定編輯器視圖狀態(tài)時進行還原。 "workbench.editor.sharedViewState": false, // 控制是否在打開的編輯器中顯示圖標。這要求同時啟用文件圖標主題。 "workbench.editor.showIcons": true, // 控制打開的編輯器是否顯示在選項卡中。 "workbench.editor.showTabs": true, // 控制在編輯器組中垂直或水平拆分編輯器時的布局。 // - vertical: 從上到下定位編輯器。 // - horizontal: 從左到右定位編輯器。 "workbench.editor.splitInGroupLayout": "horizontal", // 通過將編輯器或文件放到編輯器區(qū)域的邊緣,控制是否可以由拖放操作拆分編輯器組。 "workbench.editor.splitOnDragAndDrop": true, // 拆分編輯器組時控制編輯器組大小。 // - distribute: 將所有編輯器組拆分為相等的部分。 // - split: 將活動編輯器組拆分為相等的部分。 "workbench.editor.splitSizing": "distribute", // 控制編輯器的選項卡關閉按鈕的位置,或者在設置為 "off" 時禁用它們。當 "#workbench.editor.showTabs#" 處于禁用狀態(tài)時,將忽略此值。 "workbench.editor.tabCloseButton": "right", // 控制編輯器選項卡的大小調(diào)整。當 "#workbench.editor.showTabs#" 處于禁用狀態(tài)時,將忽略此值。 // - fit: 始終將標簽頁保持足夠大,能夠完全顯示編輯器標簽。 // - shrink: 在不能同時顯示所有選項卡時,允許選項卡縮小。 "workbench.editor.tabSizing": "fit", // 控制編輯器標題區(qū)域中用于選項卡和面包屑的滾動條的高度。 // - default: 默認大小。 // - large: 增加大小,以便更輕松地通過鼠標抓取。 "workbench.editor.titleScrollbarSizing": "default", // 控制無標題提示應該是編輯器或浮動按鈕中的內(nèi)聯(lián)文本,還是應該隱藏。 "workbench.editor.untitled.hint": "text", // 控制無標題編輯器的標簽格式。 // - content: 無標題文件的名稱派生自其第一行的內(nèi)容,除非它有關聯(lián)的文件路徑。如果行為空或不包含單詞字符,它將回退到名稱。 // - name: 無標題文件的名稱不是從文件的內(nèi)容派生的。 "workbench.editor.untitled.labelFormat": "content", // 控制當超出可用空間時,選項卡是否應在多行之間換行,或者是否應顯示滾動條。當 "#workbench.editor.showTabs#" 處于禁用狀態(tài)時,將忽略此值。 "workbench.editor.wrapTabs": false, // 將 glob 模式配置到編輯器(例如 `"*.hex": "hexEditor.hexEdit"`)。這些優(yōu)先順序高于默認行為。 "workbench.editorAssociations": {}, // 控制是否可以通過按住 `Shift` (而不是在編輯器中打開文件)將文件拖放到編輯器中。 "workbench.experimental.editor.dropIntoEditor.enabled": true, // 已棄用此設置,以支持 `workbench.layoutControl.enabled` // 控制是否通過 `window.titleBarStyle` 啟用自定義標題欄中的布局控件。 "workbench.experimental.layoutControl.enabled": true, // 已棄用此設置,以支持 `workbench.layoutControl.type` // 控制自定義標題欄中的布局控件是顯示為單個菜單按鈕還是多個 UI 切換。 // - menu: 顯示包含布局選項下拉列表的單個按鈕。 // - toggles: 顯示用于切換面板和側(cè)邊欄可見性的多個按鈕。 // - both: 顯示下拉列表和切換按鈕。 "workbench.experimental.layoutControl.type": "both", // 配置開啟程序以用于外部 URI (即 http、https)。 "workbench.externalUriOpeners": {}, // 控制為工作臺項顯示懸停之前的延遲時間(以毫秒為單位)(例如,一些擴展提供了樹狀視圖項)。已經(jīng)可見的項可能需要刷新,然后才會反映出此設置更改。 "workbench.hover.delay": 500, // 指定工作臺中使用的文件圖標主題;若指定為 "null",則不顯示任何文件圖標。 // - null: 無文件圖標 // - vs-minimal // - vs-seti // - material-icon-theme "workbench.iconTheme": "vs-seti", // 控制是否通過 `window.titleBarStyle` 啟用自定義標題欄中的布局控件。 "workbench.layoutControl.enabled": true, // 控制自定義標題欄中的布局控件是顯示為單個菜單按鈕還是多個 UI 切換。 // - menu: 顯示包含布局選項下拉列表的單個按鈕。 // - toggles: 顯示用于切換面板和側(cè)邊欄可見性的多個按鈕。 // - both: 顯示下拉列表和切換按鈕。 "workbench.layoutControl.type": "both", // 控制列表和樹中的鍵盤導航是否僅通過鍵入自動觸發(fā)。如果設置為 `false` ,鍵盤導航只在執(zhí)行 `list.toggleKeyboardNavigation` 命令時觸發(fā),您可以為該命令指定鍵盤快捷方式。 "workbench.list.automaticKeyboardNavigation": true, // 按下"Alt"時滾動速度倍增。 "workbench.list.fastScrollSensitivity": 5, // 控制列表和樹是否支持工作臺中的水平滾動。警告: 打開此設置影響會影響性能。 "workbench.list.horizontalScrolling": false, // 控制工作臺中的列表和樹的鍵盤導航樣式。它可為“簡單”、“突出顯示”或“篩選”。 // - simple: 簡單鍵盤導航聚焦與鍵盤輸入相匹配的元素。僅對前綴進行匹配。 // - highlight: 高亮鍵盤導航會突出顯示與鍵盤輸入相匹配的元素。進一步向上和向下導航將僅遍歷突出顯示的元素。 // - filter: 篩選器鍵盤導航將篩選出并隱藏與鍵盤輸入不匹配的所有元素。 "workbench.list.keyboardNavigation": "highlight", // 對鼠標滾輪滾動事件的 `deltaX` 和 `deltaY` 乘上的系數(shù)。 "workbench.list.mouseWheelScrollSensitivity": 1, // 在通過鼠標多選樹和列表條目時使用的修改鍵 (例如“資源管理器”、“打開的編輯器”和“源代碼管理”視圖)?!霸趥?cè)邊打開”功能所需的鼠標動作 (若可用) 將會相應調(diào)整,不與多選修改鍵沖突。 // - ctrlCmd: 映射為 `Ctrl` (Windows 和 Linux) 或 `Command` (macOS)。 // - alt: 映射為 `Alt` (Windows 和 Linux) 或 `Option` (macOS)。 "workbench.list.multiSelectModifier": "ctrlCmd", // 控制如何使用鼠標打開樹和列表中的項(若支持)。請注意,如果此設置不適用,某些樹和列表可能會選擇忽略它。 "workbench.list.openMode": "singleClick", // 控制列表和樹是否具有平滑滾動效果。 "workbench.list.smoothScrolling": false, // 控制是否啟用本地文件歷史記錄。啟用后,所保存編輯器文件內(nèi)容將存儲到備份位置,以便稍后可以還原或查看內(nèi)容。更改此設置不會影響現(xiàn)有本地文件歷史記錄條目。 "workbench.localHistory.enabled": true, // 配置 [glob 模式](https://code.visualstudio.com/docs/editor/codebasics#_advanced-search-options) 以從本地文件歷史記錄中排除文件。更改此設置不會影響現(xiàn)有本地文件歷史記錄條目。 "workbench.localHistory.exclude": {}, // 控制每個文件的最大本地文件歷史記錄條目數(shù)。當文件的本地文件歷史記錄條目數(shù)超過此數(shù)目時,將丟棄最早的條目。 "workbench.localHistory.maxFileEntries": 50, // 控制考慮用于本地歷史記錄的文件最大大小(KB)。較大的文件將不會添加到本地歷史記錄中。更改此設置不會影響現(xiàn)有本地文件歷史記錄條目。 "workbench.localHistory.maxFileSize": 256, // 配置時間間隔(以秒為單位),在此間隔期間,本地文件歷史記錄中的最后一個條目將替換為正在添加的條目。這有助于減少所添加的條目總數(shù),例如啟用自動保存時。此設置僅應用于具有相同源的條目。更改此設置不會影響現(xiàn)有本地文件歷史記錄條目。 "workbench.localHistory.mergeWindow": 10, // 控制新工作區(qū)中面板(終端、調(diào)試控制臺、輸出、問題)的默認位置。它可以顯示在編輯器區(qū)域的底部、右側(cè)或左側(cè)。 "workbench.panel.defaultLocation": "bottom", // 控制面板是否以最大化方式打開。它可以始終以最大化方式打開、永不以最大化方式打開或以關閉前的最后一個狀態(tài)打開。 // - always: 始終以最大化方式打開面板。 // - never: 永不以最大化方式打開面板。面板將以非最大化方式打開。 // - preserve: 以關閉面板前的狀態(tài)打開面板。 "workbench.panel.opensMaximized": "preserve", // 指定啟用了 `window.autoDetectColorScheme` 時深色操作系統(tǒng)外觀的首選顏色主題。 "workbench.preferredDarkColorTheme": "Default Dark+", // 指定啟用了 `window.autoDetectHighContrast` 時在高對比度深色模式下使用的首選顏色主題。 "workbench.preferredHighContrastColorTheme": "Default High Contrast", // 指定啟用了 `window.autoDetectHighContrast` 時在高對比度淺色模式下使用的首選顏色主題。 "workbench.preferredHighContrastLightColorTheme": "Default High Contrast Light", // 指定啟用了 `window.autoDetectColorScheme` 時淺色操作系統(tǒng)外觀的首選顏色主題。 "workbench.preferredLightColorTheme": "Default Light+", // 指定使用的產(chǎn)品圖標主題。 // - Default: 默認 "workbench.productIconTheme": "Default", // 控制 Quick Open 是否在其失去焦點時自動關閉。 "workbench.quickOpen.closeOnFocusLost": true, // 在打開 Quick Open 視圖時,控制是否自動恢復上一次輸入的值。 "workbench.quickOpen.preserveInput": false, // 控制工作臺是否應以更少的動畫呈現(xiàn)。 // - on: 始終減少動作呈現(xiàn)。 // - off: 不要減少運動呈現(xiàn) // - auto: 根據(jù) OS 配置減少運動呈現(xiàn)。 "workbench.reduceMotion": "auto", // 控制視圖/編輯器之間拖動區(qū)域的懸停反饋延遲(以毫秒為單位)。 "workbench.sash.hoverDelay": 300, // 控制視圖/編輯器之間拖動區(qū)域的反饋區(qū)域大小(以像素為單位)。如果你認為很難使用鼠標調(diào)整視圖的大小,請將該值調(diào)大。 "workbench.sash.size": 4, // 配置默認使用的設置編輯器。 // - ui: 使用設置 ui 編輯器。 // - json: 使用 json 文件編輯器。 "workbench.settings.editor": "ui", // 控制是否在設置中啟用自然語言搜索。自然語言搜索由 Microsoft 聯(lián)機服務提供。 "workbench.settings.enableNaturalLanguageSearch": true, // 控制在打開按鍵綁定設置時是否同時打開顯示所有默認按鍵綁定的編輯器。 "workbench.settings.openDefaultKeybindings": false, // 控制在打開設置時是否同時打開顯示所有默認設置的編輯器。 "workbench.settings.openDefaultSettings": false, // 控制設置編輯器的目錄在搜索時的行為。 // - hide: 在搜索時隱藏目錄。 // - filter: 篩選目錄為僅顯示含有匹配設置的類別。單擊一個類別將僅顯示該類別的結果。 "workbench.settings.settingsSearchTocBehavior": "filter", // 控制在將設置編輯為 json 時是否使用拆分 json 編輯器。 "workbench.settings.useSplitJSON": false, // 控制主邊欄和活動欄的位置。它們可以顯示在工作臺的左側(cè)或右側(cè)。輔助邊欄將顯示在工作臺的另一側(cè)。 "workbench.sideBar.location": "left", // 在沒有從上一會話中恢復出信息的情況下,控制啟動時顯示的編輯器。 // - none: 在啟動時不打開編輯器。 // - welcomePage: 打開包含幫助開始使用 VS Code 和擴展內(nèi)容的歡迎頁面。 // - readme: 當打開包含自述文件的文件夾時,請打開自述文件,否則會回退到 'welcomePage'。請注意: 僅在作為全局 配置時才遵守此操作,如果在工作區(qū)或文件夾配置中進行設置,則此將被忽略。 // - newUntitledFile: 打開一個新的無標題文件(僅在打開一個空窗口時適用)。 // - welcomePageInEmptyWorkbench: 在打開空工作區(qū)時打開歡迎頁面。 "workbench.startupEditor": "welcomePage", // 控制工作臺底部狀態(tài)欄的可見性。 "workbench.statusBar.visible": true, // 啟用后,當沒有打開編輯器時將顯示水印提示。 "workbench.tips.enabled": true, // 控制在單擊文件夾名稱時如何擴展樹文件夾。請注意,如果不適用,某些樹和列表可能會選擇忽略此設置。 "workbench.tree.expandMode": "singleClick", // 控制樹縮進(以像素為單位)。 "workbench.tree.indent": 8, // 控制樹是否應呈現(xiàn)縮進參考線。 "workbench.tree.renderIndentGuides": "onHover", // 控制是否顯示視圖頭部的操作項。視圖頭部操作項可以一直,或是僅當聚焦到和懸停在視圖上時顯示。 "workbench.view.alwaysShowHeaderActions": false }, { // 如果已設置,則根據(jù) OS 外觀自動切換到首選顏色主題。如果 OS 外觀為深色,則使用 `workbench.preferredDarkColorTheme#` 處指定的主題。如果外觀為淺色,則使用 `#workbench.preferredLightColorTheme` 處指定的主題。 "window.autoDetectColorScheme": false, // 控制在關閉最后一個編輯器時是否關閉整個窗口。此設置僅適用于沒有顯示文件夾的窗口。 "window.closeWhenEmpty": false, // 根據(jù)活動編輯器控制窗口標題。變量是根據(jù)上下文替換的: // - "${activeEditorShort}": 文件名 (例如 myFile.txt)。 // - "${activeEditorMedium}": 相對于工作區(qū)文件夾的文件路徑 (例如, myFolder/myFileFolder/myFile.txt)。 // - "${activeEditorLong}": 文件的完整路徑 (例如 /Users/Development/myFolder/myFileFolder/myFile.txt)。 // - "${activeFolderShort}": 文件所在的文件夾名稱 (例如, myFileFolder)。 // - "${activeFolderMedium}": 相對于工作區(qū)文件夾的、包含文件的文件夾的路徑, (例如 myFolder/myFileFolder)。 // - "${activeFolderLong}": 文件所在文件夾的完整路徑 (例如 /Users/Development/myFolder/myFileFolder)。 // - "${folderName}": 文件所在工作區(qū)文件夾的名稱 (例如 myFolder)。 // - "${folderpath}": 文件所在工作區(qū)文件夾的路徑 (例如 /Users/Development/myFolder)。 // - "${rootName}": 打開的工作區(qū)或文件夾的名稱 (例如 myFolder 或 myWorkspace)。 // - "${rootPath}": 打開的工作區(qū)或文件夾的文件路徑 (例如 /Users/Development/myWorkspace)。 // - "${appName}": 例如 VS Code。 // - “${remoteName}”: 例如 SSH // - `${dirty}`: 表明活動編輯器具有未保存更改的時間的指示器。 // - "${separator}": 一種條件分隔符 ("-"), 僅在被包含值或靜態(tài)文本的變量包圍時顯示。 "window.title": "${dirty}${activeEditorShort}${separator}${rootName}${separator}${appName}", // "window.title" 使用的分隔符。 "window.titleSeparator": " - ", // 調(diào)整窗口的縮放級別。原始大小是 0,每次遞增(例如 1)或遞減(例如 -1)表示放大或縮小 20%。也可以輸入小數(shù)以便以更精細的粒度調(diào)整縮放級別。 "window.zoomLevel": 0 }, { // 控制在打開禪模式時是否啟用居中布局。 "zenMode.centerLayout": true, // 控制在打開禪模式時是否將工作臺切換到全屏。 "zenMode.fullScreen": true, // 控制在打開禪模式時是否隱藏工作臺左側(cè)或右側(cè)的活動欄。 "zenMode.hideActivityBar": true, // 控制在打開禪模式時是否隱藏編輯器行號。 "zenMode.hideLineNumbers": true, // 控制在打開禪模式時是否隱藏工作臺底部的狀態(tài)欄。 "zenMode.hideStatusBar": true, // 控制在打開禪模式時是否隱藏工作臺選項卡。 "zenMode.hideTabs": true, // 若窗口在處于禪模式時退出,控制其在恢復時是否還原到禪模式。 "zenMode.restore": true, // 控制在禪宗模式下是否顯示通知。如果為 true,則只會彈出錯誤通知。 "zenMode.silentNotifications": true }, { // 控制截屏模式鍵盤的字體大小(以像素為單位)。 "screencastMode.fontSize": 56, // 控制截屏模式下鍵盤覆蓋顯示的時長(以毫秒為單位)。 "screencastMode.keyboardOverlayTimeout": 800, // 控制顯示快捷方式時鍵盤覆蓋中顯示的內(nèi)容。 // - keys: 密鑰。 // - command: 命令標題。 // - commandWithGroup: 以其組為前綴的命令標題。 // - commandAndKeys: 命令標題和密鑰。 // - commandWithGroupAndKeys: 命令標題和密鑰,其中命令以其組為前綴。 "screencastMode.keyboardShortcutsFormat": "commandAndKeys", // 控制截屏視頻模式下鼠標指示器的十六進制(#RGB、#RGBA、#RRGGBB 或 #RRGGBBAA)的顏色。 "screencastMode.mouseIndicatorColor": "#FF0000", // 控制截屏模式下鼠標光標的大小(以像素為單位)。 "screencastMode.mouseIndicatorSize": 20, // 僅在截屏模式下顯示鍵盤快捷方式。 "screencastMode.onlyKeyboardShortcuts": false, // 控制截屏模式疊加的垂直偏移,從底部作為工作臺高度的百分比。 "screencastMode.verticalOffset": 20 }, { // 配置語言的文件關聯(lián) (如: `"*.extension": "html"`)。這些關聯(lián)的優(yōu)先級高于已安裝語言的默認關聯(lián)。 "files.associations": {}, // 啟用后,編輯器將嘗試在打開文件時猜測字符集編碼。此設置也可以按語言配置。請注意,文本搜索不遵守此設置。僅遵守 “#files.encoding#”。 "files.autoGuessEncoding": false, // 控制具有未保存更改的編輯器的 [自動保存](https://code.visualstudio.com/docs/editor/codebasics#_save-auto-save)。 // - off: 具有更改的編輯器永遠不會自動保存。 // - afterDelay: 在配置的 `files.autoSaveDelay` 之后,會自動保存具有更改的編輯器。 // - onFocusChange: 當編輯器失去焦點時,會自動保存具有更改的編輯器。 // - onWindowChange: 當窗口失去焦點時,會自動保存具有更改的編輯器。 "files.autoSave": "off", // 控制自動保存具有未保存更改的編輯器之前的延遲(以毫秒為單位)。只有當 `files.autoSave` 設置為 `afterDelay` 時才適用。 "files.autoSaveDelay": 1000, // 分配給新文件的默認語言標識符。如果配置為 "${activeEditorLanguage}",將使用當前活動文本編輯器(如果有)的語言標識符。 "files.defaultLanguage": "", // 在刪除文件或文件夾時,將它們移動到操作系統(tǒng)的“廢紙簍”中 (Windows 為“回收站”)。禁用此設置將永久刪除文件或文件夾。 "files.enableTrash": true, // 在讀取和寫入文件時使用的默認字符集編碼??梢园凑Z言對此項進行配置。 // - utf8: UTF-8 // - utf8bom: UTF-8 with BOM // - utf16le: UTF-16 LE // - utf16be: UTF-16 BE // - windows1252: Western (Windows 1252) // - iso88591: Western (ISO 8859-1) // - iso88593: Western (ISO 8859-3) // - iso885915: Western (ISO 8859-15) // - macroman: Western (Mac Roman) // - cp437: DOS (CP 437) // - windows1256: Arabic (Windows 1256) // - iso88596: Arabic (ISO 8859-6) // - windows1257: Baltic (Windows 1257) // - iso88594: Baltic (ISO 8859-4) // - iso885914: Celtic (ISO 8859-14) // - windows1250: Central European (Windows 1250) // - iso88592: Central European (ISO 8859-2) // - cp852: Central European (CP 852) // - windows1251: Cyrillic (Windows 1251) // - cp866: Cyrillic (CP 866) // - iso88595: Cyrillic (ISO 8859-5) // - koi8r: Cyrillic (KOI8-R) // - koi8u: Cyrillic (KOI8-U) // - iso885913: Estonian (ISO 8859-13) // - windows1253: Greek (Windows 1253) // - iso88597: Greek (ISO 8859-7) // - windows1255: Hebrew (Windows 1255) // - iso88598: Hebrew (ISO 8859-8) // - iso885910: Nordic (ISO 8859-10) // - iso885916: Romanian (ISO 8859-16) // - windows1254: Turkish (Windows 1254) // - iso88599: Turkish (ISO 8859-9) // - windows1258: Vietnamese (Windows 1258) // - gbk: Simplified Chinese (GBK) // - gb18030: Simplified Chinese (GB18030) // - cp950: Traditional Chinese (Big5) // - big5hkscs: Traditional Chinese (Big5-HKSCS) // - shiftjis: Japanese (Shift JIS) // - eucjp: Japanese (EUC-JP) // - euckr: Korean (EUC-KR) // - windows874: Thai (Windows 874) // - iso885911: Latin/Thai (ISO 8859-11) // - koi8ru: Cyrillic (KOI8-RU) // - koi8t: Tajik (KOI8-T) // - gb2312: Simplified Chinese (GB 2312) // - cp865: Nordic DOS (CP 865) // - cp850: Western European DOS (CP 850) "files.encoding": "utf8", // 默認行尾字符。 // - \n: LF // - \r\n: CRLF // - auto: 使用具體操作系統(tǒng)規(guī)定的行末字符。 "files.eol": "auto", // 配置 [glob 模式](https://code.visualstudio.com/docs/editor/codebasics#_advanced-search-options)以排除文件和文件夾。例如,文件資源管理器根據(jù)此設置決定要顯示或隱藏的文件和文件夾。請參閱 "#search.exclude#" 設置以定義特定于搜索的排除。 "files.exclude": { "**/.git": true, "**/.svn": true, "**/.hg": true, "**/CVS": true, "**/.DS_Store": true, "**/Thumbs.db": true }, // 啟用后,保存文件時在文件末尾插入一個最終新行。 "files.insertFinalNewline": false, // 在打開大型文件時,控制 VS Code 可在重啟后使用的內(nèi)存。在命令行中指定 `--max-memory=新的大小` 參數(shù)可達到相同效果。 "files.maxMemoryForLargeFilesMB": 4096, // 超時(以毫秒為單位)后,將取消創(chuàng)建、重命名和刪除的文件參與者。使用\"0\"禁用參與者。 "files.participants.timeout": 60000, // 控制是否自動保存作為重構一部分的文件 "files.refactoring.autoSave": true, // 重新打開文件后,還原撤消堆棧。 "files.restoreUndoStack": true, // 當文件保存到磁盤上并被另一個程序更改時,可能會發(fā)生保存沖突。 為了防止數(shù)據(jù)丟失,要求用戶將編輯器中的更改與磁盤上的版本進行比較。 僅當經(jīng)常遇到保存沖突錯誤時,才應更改此設置;如果不謹慎使用,可能會導致數(shù)據(jù)丟失。 // - askUser: 將拒絕保存并請求手動解決保存沖突。 // - overwriteFileOnDisk: 將通過在編輯器中用更改覆蓋磁盤上的文件來解決保存沖突。 "files.saveConflictResolution": "askUser", // 啟用簡單文件對話框。啟用時,簡單文件對話框?qū)⑻鎿Q系統(tǒng)文件對話框。 "files.simpleDialog.enable": false, // 啟用后,保存文件時將刪除在最終新行后的所有新行。 "files.trimFinalNewlines": false, // 啟用后,將在保存文件時刪除行尾的空格。 "files.trimTrailingWhitespace": false, // 配置要從文件觀察中排除的路徑或 glob 模式。相對的路徑或基本 glob 模式(例如 `build/output` 或 `*.js`)將使用當前打開的工作區(qū)解析為絕對路徑。復雜 Glob 模式必須在絕對路徑(即前綴為 “**/” 或完整路徑和后綴為 “/**” 以匹配路徑中的文件)上匹配,才能正確匹配(例如 “**/build/output/**” 或 “/Users/name/workspaces/project/build/output/**”)。當遇到文件觀察程序進程消耗大量 CPU 時,請確保排除不太相關的大型文件夾(例如生成輸出文件夾)。 "files.watcherExclude": { "**/.git/objects/**": true, "**/.git/subtree-cache/**": true, "**/node_modules/*/**": true, "**/.hg/store/**": true }, // 配置額外路徑以監(jiān)視工作區(qū)內(nèi)的更改。默認情況下,將以遞歸方式監(jiān)視所有工作區(qū)文件夾,但符號鏈接的文件夾除外??梢燥@式添加絕對路徑或相對路徑,以支持作為符號鏈接的監(jiān)視文件夾。將使用當前打開的工作區(qū)將相對路徑解析為絕對路徑。 "files.watcherInclude": [] }, { // 控制資源管理器是否在打開文件時自動顯示并選擇。 // - true: 將顯示和選擇文件。 // - false: 不會顯示和選擇文件。 // - focusNoScroll: 文件不會滾動到視圖中,但仍會獲得焦點。 "explorer.autoReveal": true, // 控制資源管理器是否應以緊湊形式呈現(xiàn)文件夾。在這種形式中,單個子文件夾將被壓縮在組合的樹元素中。例如,對 Java 包結構很有用。 "explorer.compactFolders": true, // 控制資源管理器是否在把文件刪除到廢紙簍時進行確認。 "explorer.confirmDelete": true, // 控制在資源管理器內(nèi)拖放移動文件或文件夾時是否進行確認。 "explorer.confirmDragAndDrop": true, // 控制資源管理器是否應在撤消時要求確認。 // - verbose: 資源管理器將在所有撤消操作之前進行提示。 // - default: 資源管理器將在破壞性撤消操作之前進行提示。 // - light: 聚焦時,資源管理器將不會在撤消操作之前進行提示。 "explorer.confirmUndo": "default", // 復制相對文件路徑時使用的路徑分隔字符。 // - /: 使用斜杠作為路徑分隔字符。 // - \: 使用反斜杠作為路徑分隔字符。 // - auto: 使用操作系統(tǒng)特定路徑分隔字符。 "explorer.copyRelativePathSeparator": "auto", // 控制文件修飾是否應使用徽章。 "explorer.decorations.badges": true, // 控制文件修飾是否應使用顏色。 "explorer.decorations.colors": true, // 控制瀏覽器是否允許通過拖放移動文件和文件夾。此設置僅影響從瀏覽器內(nèi)部拖放。 "explorer.enableDragAndDrop": true, // 控制資源管理器是否應支持撤消文件和文件夾操作。 "explorer.enableUndo": true, // 控制資源管理器是否應在初始化過程中展開僅包含一個文件夾的多根工作區(qū) "explorer.expandSingleFolderWorkspaces": true, // 控制是否已在資源管理器中啟用文件嵌套。文件嵌套允許目錄中的相關文件在單個父文件下以可視方式組合在一起。 "explorer.fileNesting.enabled": false, // 控制是否自動擴展文件嵌套。要使此操作生效,必須設置“#explorer.fileNesting.enabled#”。 "explorer.fileNesting.expand": true, // 控制資源管理器中的文件嵌套。每個 __Item__ 都表示父模式,且可能包含匹配任意字符串的單個 \"*\" 字符。每個 __Value__ 都表示子模式的逗號分隔列表,這些子模式應顯示嵌套在給定父級下。子模式可能包含多個特殊標記: // - \"${capture}\": 匹配父模式的 \"*\" 的解析值 // - \"${basename}\": 匹配父文件的基名,即 \"file.ts\" 中的 \"file\" // - \"${extname}\": 匹配父文件的擴展名,即 \"file.ts\" 中的 \"ts\" // - \"${dirname}\": 匹配父文件的目錄名,即 \"src/file.ts\" 中的 \"src\" // - \"*\": 匹配任意字符串,每個子模式只能使用一次 "explorer.fileNesting.patterns": { "*.ts": "${capture}.js", "*.js": "${capture}.js.map, ${capture}.min.js, ${capture}.d.ts", "*.jsx": "${capture}.js", "*.tsx": "${capture}.ts", "tsconfig.json": "tsconfig.*.json", "package.json": "package-lock.json, yarn.lock" }, // 選擇在粘貼同名文件(夾)時要使用的重命名方式。 // - simple: 在重復名稱的末尾附加單詞“copy”,后面可能跟一個數(shù)字 // - smart: 在重復名稱的末尾添加一個數(shù)字。如果某個號碼已經(jīng)是名稱的一部分,請嘗試增加該號碼 "explorer.incrementalNaming": "simple", // “打開編輯器”窗格中顯示的最小編輯器槽數(shù)。如果設置為 0,則“打開編輯器”窗格將根據(jù)編輯器數(shù)量動態(tài)重設大小。 "explorer.openEditors.minVisible": 0, // 控制編輯器在“打開編輯器”窗格中的排序順序。 // - editorOrder: 編輯器按編輯器標簽顯示的順序排列。 // - alphabetical: 編輯器在每個編輯器組內(nèi)按選項卡名稱以字母順序排序。 // - fullPath: 編輯器在每個編輯器組內(nèi)按完整路徑以字母順序排序。 "explorer.openEditors.sortOrder": "editorOrder", // “打開編輯器”窗格中顯示的編輯器最大數(shù)量。如果設置為 0,將隱藏“打開編輯器”窗格。 "explorer.openEditors.visible": 9, // 控制資源管理器中文件和文件夾基于屬性的排序。啟用“#explorer.fileNesting.enabled#”后,還控制嵌套文件的排序。 // - default: 按名稱排列文件和文件夾。文件夾顯示在文件前。 // - mixed: 按名稱排列文件和文件夾。兩者穿插顯示。 // - filesFirst: 按名稱排列文件和文件夾。文件顯示在文件夾前。 // - type: 按拓展類型為文件和文件夾分組,然后按名稱排列它們。文件夾顯示在文件前。 // - modified: 按最后修改日期降序排列文件和文件夾。文件夾顯示在文件前。 // - foldersNestsFiles: 文件和文件夾按其名稱排序。文件夾顯示在文件之前。具有嵌套子級的文件將顯示在其他文件之前。 "explorer.sortOrder": "default", // 在資源管理器中控制文件和文件夾名稱的詞典排序。 // - default: 將大寫和小寫名稱混合在一起。 // - upper: 大寫名稱組合在一起,位于小寫名稱之前。 // - lower: 小寫名稱組合在一起,位于大寫名稱之前。 // - unicode: 名稱按 unicode 順序排序。 "explorer.sortOrderLexicographicOptions": "default" }, { // 在搜索視圖中控制操作欄的位置。 // - auto: 當搜索視圖較窄時將操作欄置于右側(cè),當搜索視圖較寬時,將它緊接在內(nèi)容之后。 // - right: 始終將操作欄放置在右側(cè)。 "search.actionsPosition": "right", // 控制是折疊還是展開搜索結果。 // - auto: 結果少于10個的文件將被展開。其他的則被折疊。 // - alwaysCollapse // - alwaysExpand "search.collapseResults": "alwaysExpand", // 配置 [glob 模式](https://code.visualstudio.com/docs/editor/codebasics#_advanced-search-options)以在全文搜索和快速打開中排除文件和文件夾。從 "#files.exclude#" 設置繼承所有 glob 模式。 "search.exclude": { "**/node_modules": true, "**/bower_components": true, "**/*.code-search": true }, // 控制是否在搜索中跟蹤符號鏈接。 "search.followSymlinks": true, // 此設置已棄用??梢愿臑閷⑺阉鲌D標拖到新位置。 // 控制搜索功能是顯示在側(cè)邊欄,還是顯示在水平空間更大的面板區(qū)域。 "search.location": "sidebar", // 搜索緩存保留在從不關閉的擴展主機中,因此不再需要此設置。 // 啟用后,搜索服務進程將保持活動狀態(tài),而不是在一個小時不活動后關閉。這將使文件搜索緩存保留在內(nèi)存中。 "search.maintainFileSearchCache": false, // 控制搜索結果的最大數(shù)目,可將其設置為 “null”(空),以返回無限結果。 "search.maxResults": 20000, // 控制新的“搜索: 在文件中查找”和“在文件夾中查找”操作發(fā)生的位置: 在搜索視圖中或在搜索編輯器中 // - view: 在面板或邊欄的搜索視圖中進行搜索。 // - reuseEditor: 在現(xiàn)有搜索編輯器(若有)中搜索,否則在新的搜索編輯器中進行搜索。 // - newEditor: 在新的搜索編輯器中搜索。 "search.mode": "view", // 控制在快速打開中篩選時編輯器歷史記錄的排序順序。 // - default: 歷史記錄條目按與篩選值的相關性排序。首先顯示更相關的條目。 // - recency: 歷史記錄條目按最近時間排序。首先顯示最近打開的條目。 "search.quickOpen.history.filterSortOrder": "default", // 是否在 Quick Open 的文件結果中包含最近打開的文件。 "search.quickOpen.includeHistory": true, // 控制 Quick Open 文件結果中是否包括全局符號搜索的結果。 "search.quickOpen.includeSymbols": false, // 創(chuàng)建新的搜索編輯器時要使用的周圍上下文行的默認數(shù)目。如果使用 "#search.searchEditor.reusePriorSearchConfiguration#",則可將它設置為 "null" (空),以使用搜索編輯器之前的配置。 "search.searchEditor.defaultNumberOfContextLines": 1, // 配置在搜索編輯器中雙擊結果的效果。 // - selectWord: 雙擊選擇光標下的單詞。 // - goToLocation: 雙擊將在活動編輯器組中打開結果。 // - openLocationToSide: 雙擊將在編輯器組中的結果打開到一邊,如果尚不存在,則創(chuàng)建一個結果。 "search.searchEditor.doubleClickBehaviour": "goToLocation", // 啟用后,新的搜索編輯器將重用之前打開的搜索編輯器的包含、排除和標志。 "search.searchEditor.reusePriorSearchConfiguration": false, // 在鍵入時搜索所有文件。 "search.searchOnType": true, // 啟用"#search.searchOnType"后,控制鍵入的字符與開始搜索之間的超時(以毫秒為單位)。禁用"搜索.searchOnType"時無效。 "search.searchOnTypeDebouncePeriod": 300, // 聚焦搜索視圖時,將搜索查詢更新為編輯器的所選文本。單擊時或觸發(fā) "workbench.views.search.focus" 命令時會發(fā)生此情況。 "search.seedOnFocus": false, // 當活動編輯器沒有選定內(nèi)容時,從離光標最近的字詞開始進行種子設定搜索。 "search.seedWithNearestWord": false, // 控制是否顯示搜索結果所在的行號。 "search.showLineNumbers": false, // 若搜索詞全為小寫,則不區(qū)分大小寫進行搜索,否則區(qū)分大小寫進行搜索。 "search.smartCase": false, // 控制搜索結果的排序順序。 // - default: 結果按文件夾和文件名按字母順序排序。 // - fileNames: 結果按文件名排序,忽略文件夾順序,按字母順序排列。 // - type: 結果按文件擴展名的字母順序排序。 // - modified: 結果按文件的最后修改日期按降序排序。 // - countDescending: 結果按每個文件的計數(shù)降序排序。 // - countAscending: 結果按每個文件的計數(shù)以升序排序。 "search.sortOrder": "default", // 控制在搜索文件時是否使用全局 “.gitignore” 和 “.ignore” 文件。需要啟用 “#search.useIgnoreFiles#”。 "search.useGlobalIgnoreFiles": false, // 控制在搜索文件時是否使用 `.gitignore` 和 `.ignore` 文件。 "search.useIgnoreFiles": true, // 控制在搜索文件時是否在父目錄中使用 ".gitignore" 和 ".ignore" 文件。需要啟用 "#search.useIgnoreFiles#"。 "search.useParentIgnoreFiles": false, // 棄用。當使用僅 PCRE2 支持的正則表達式功能時,將自動使用 PCRE2。 // 是否在文本搜索中使用 pcre2 正則表達式引擎。這允許使用一些高級正則表達式功能, 如前瞻和反向引用。但是, 并非所有 pcre2 功能都受支持-僅支持 javascript 也支持的功能。 "search.usePCRE2": false, // 控制在選擇或替換匹配項時是否打開“替換預覽”視圖。 "search.useReplacePreview": true, // 已棄用。請考慮使用 "search.usePCRE2" 獲取對高級正則表達式功能的支持。 // 此設置已被棄用,將回退到 "search.usePCRE2"。 "search.useRipgrep": true }, { // 允許在任何文件中設置斷點。 "debug.allowBreakpointsEverywhere": false, // 自動顯示調(diào)試器延遲解析的變量的值,例如 getter。 "debug.autoExpandLazyVariables": false, // 如果存在活動調(diào)試會話,控制是否確認窗口關閉時間。 // - never: 從不確認。 // - always: 始終確認是否存在調(diào)試會話。 "debug.confirmOnExit": "never", // 控制是否應在調(diào)試控制臺中輸入時接受建議。enter 還用于評估調(diào)試控制臺中鍵入的任何內(nèi)容。 "debug.console.acceptSuggestionOnEnter": "off", // 控制調(diào)試控制臺是否應在調(diào)試會話結束時自動關閉。 "debug.console.closeOnEnd": false, // 控制調(diào)試控制臺是否應折疊相同的行,并顯示出現(xiàn)次數(shù)和徽章。 "debug.console.collapseIdenticalLines": true, // 控制調(diào)試控制臺中的字體系列。 "debug.console.fontFamily": "default", // 控制調(diào)試控制臺中的字體大小(以像素為單位)。 "debug.console.fontSize": 14, // 控制調(diào)試控制臺是否應建議以前鍵入的輸入。 "debug.console.historySuggestions": true, // 設置調(diào)試控制臺中的行高(以像素為單位)。使用 0 來計算從字體大小開始的行高。 "debug.console.lineHeight": 0, // 控制是否應在調(diào)試控制臺中換行。 "debug.console.wordWrap": true, // 在反匯編視圖中顯示源代碼。 "debug.disassemblyView.showSourceCode": true, // 控制調(diào)試器中斷時編輯器是否應聚焦。 "debug.focusEditorOnBreak": true, // 控制當調(diào)試器中斷時,工作臺窗口是否應獲得焦點。 "debug.focusWindowOnBreak": true, // 當處于調(diào)試過程中時,在編輯器中內(nèi)聯(lián)顯示變量值。 // - on: 在調(diào)試時,始終在編輯器中內(nèi)聯(lián)顯示變量值。 // - off: 在調(diào)試時,絕不在編輯器中內(nèi)聯(lián)顯示變量值。 // - auto: 如果語言支持內(nèi)聯(lián)值位置,則在調(diào)試時在編輯器中內(nèi)聯(lián)顯示變量值。 "debug.inlineValues": "auto", // 控制何時打開內(nèi)部調(diào)試控制臺。 "debug.internalConsoleOptions": "openOnFirstSessionStart", // 控制在運行預啟動任務后遇到錯誤時應該怎么做。 // - debugAnyway: 忽略任務錯誤并開始調(diào)試。 // - showErrors: 顯示問題視圖且不開始調(diào)試。 // - prompt: 提示用戶。 // - abort: 取消調(diào)試。 "debug.onTaskErrors": "prompt", // 控制何時打開“調(diào)試”視圖。 "debug.openDebug": "openOnDebugBreak", // 在調(diào)試會話結束時自動打開資源管理器視圖。 "debug.openExplorerOnEnd": false, // 控制在啟動調(diào)試會話前要保存哪些編輯器。 // - allEditorsInActiveGroup: 在啟動調(diào)試會話之前,保存活動組中的所有編輯器。 // - nonUntitledEditorsInActiveGroup: 在啟動調(diào)試會話之前,保存活動組中的所有編輯器(無標題的編輯器除外)。 // - none: 在啟動調(diào)試會話之前,不保存任何編輯器。 "debug.saveBeforeStart": "allEditorsInActiveGroup", // 控制斷點是否應顯示在概覽標尺中。 "debug.showBreakpointsInOverviewRuler": false, // 控制調(diào)試時是否應在編輯器中顯示內(nèi)聯(lián)斷點候選修飾。 "debug.showInlineBreakpointCandidates": true, // 控制何時顯示調(diào)試狀態(tài)欄。 // - never: 在狀態(tài)欄中不再顯示調(diào)試 // - always: 始終在狀態(tài)欄中顯示調(diào)試 // - onFirstSessionStart: 僅于第一次啟動調(diào)試后在狀態(tài)欄中顯示調(diào)試 "debug.showInStatusBar": "onFirstSessionStart", // 控制調(diào)試子會話是否顯示在調(diào)試工具欄中。當此設置為 false 時, 子會話上的 stop 命令也將停止父會話。 "debug.showSubSessionsInToolBar": false, // 在集成或外部終端中啟動新的調(diào)試會話之前,請清除終端。 "debug.terminal.clearBeforeReusing": false, // 控制調(diào)試工具欄的位置。可在所有視圖中“浮動”、在調(diào)試視圖中“停靠”,也可“隱藏”。 "debug.toolBarLocation": "floating", // 全局調(diào)試啟動配置。應當作為跨工作區(qū)共享的 \"launch.json\" 的替代方法。 "launch": { "configurations": [], "compounds": [] } }, { // 此設置已棄用,取而代之的是 \"comments.openView\"。 // 控制評論面板應何時打開。 "comments.openPanel": "openOnSessionStartWithComments", // 控制評論視圖應何時打開。 // - never: 注釋視圖永遠不會打開。 // - file: 批注視圖將在具有注釋的文件處于活動狀態(tài)時打開。 // - firstFile: 如果在此會話期間尚未打開注釋視圖,則它將在帶注釋文件處于活動狀態(tài)的會話期間首次打開。 "comments.openView": "firstFile", // 確定是否在注釋時間戳中使用相對時間,(例如"1 天前")。 "comments.useRelativeTime": true }, { // 啟用/禁用 HTML 標記的自動關閉。 "html.autoClosingTags": true, // 啟用/禁用自動創(chuàng)建 HTML 屬性分配的引號??赏ㄟ^ #html.completion.attributeDefaultValue#”配置引號類型。 "html.autoCreateQuotes": true, // 控制接受完成時屬性的默認值。 // - doublequotes: 屬性值設置為 ""。 // - singlequotes: 屬性值設置為 ''。 // - empty: 未設置屬性值。 "html.completion.attributeDefaultValue": "doublequotes", // 一個相對文件路徑列表,這些路徑指向采用[自定義數(shù)據(jù)格式](https://github.com/microsoft/vscode-html-languageservice/blob/master/docs/customData.md)的 JSON 文件。 // // VS Code 在啟動時加載自定義數(shù)據(jù),從而增強它對你在 JSON 文件中指定的自定義 HTML 標記、屬性和屬性值的 HTML 支持。 // // 文件路徑與工作區(qū)相對,且僅考慮工作區(qū)文件夾設置。 "html.customData": [], // 標記列表(用逗號隔開),其中內(nèi)容不應重新格式化。"null" 默認為 "pre" 標記。 "html.format.contentUnformatted": "pre,code,textarea", // 啟用或禁用默認 HTML 格式化程序。 "html.format.enable": true, // 以新行結束。 "html.format.endWithNewline": false, // 以逗號分隔的標記列表,其中的標記之前將有額外新行。若為 `null`,默認包含 `"head, body, /html"`。 "html.format.extraLiners": "head, body, /html", // 對 `{{#foo}}` 和 `{{/foo}}` 進行格式化與縮進。 "html.format.indentHandlebars": false, // 縮進 "<head>" 和 "<body>" 部分。 "html.format.indentInnerHtml": false, // 保留在一個區(qū)塊中的換行符的最大數(shù)量。若為 `null`,則沒有限制。 "html.format.maxPreserveNewLines": null, // 控制是否保留元素前已有的換行符。僅適用于元素前,不適用于標記內(nèi)或文本。 "html.format.preserveNewLines": true, // 接受 django、erb、handlebars 和 php 模板化語言標記。 "html.format.templating": false, // 以逗號分隔的標記列表,其中的內(nèi)容不會被重新格式化。若為 `null`,默認包含所有列于 https://www.w3.org/TR/html5/dom.html#phrasing-content 的標記。 "html.format.unformatted": "wbr", // 在此字符串之間保留文本內(nèi)容。 "html.format.unformattedContentDelimiter": "", // 對屬性進行換行。 // - auto: 僅在超出行長度時才對屬性進行換行。 // - force: 對除第一個屬性外的其他每個屬性進行換行。 // - force-aligned: 對除第一個屬性外的其他每個屬性進行換行,并保持對齊。 // - force-expand-multiline: 對每個屬性進行換行。 // - aligned-multiple: 當超出折行長度時,將屬性進行垂直對齊。 // - preserve: 保留屬性的包裝。 // - preserve-aligned: 保留屬性的包裝,但對齊。 "html.format.wrapAttributes": "auto", // 將包裝的屬性縮進到 N 個字符之后。使用 `null` 來使用默認縮進大小。如果將 `html.format.wrapAttributes` 設置為 “aligned”,則忽略此項。 "html.format.wrapAttributesIndentSize": null, // 每行最大字符數(shù)(0 = 禁用)。 "html.format.wrapLineLength": 120, // 在懸停時顯示標記和屬性文檔。 "html.hover.documentation": true, // 在懸停時顯示 MDN 的引用。 "html.hover.references": true, // 已棄用,請改用 "editor.linkedEditing" // 在匹配的 HTML 標記上啟用/禁用鏡像光標。 "html.mirrorCursorOnMatchingTag": false, // 配置內(nèi)置 HTML 語言支持是否建議 HTML5 標記、屬性和值。 "html.suggest.html5": true, // 跟蹤 VS Code 與 HTML 語言服務器之間的通信。 "html.trace.server": "off", // 配置內(nèi)置的 HTML 語言支持是否對嵌入的腳本進行驗證。 "html.validate.scripts": true, // 配置內(nèi)置 HTML 語言支持是否對嵌入的樣式進行驗證。 "html.validate.styles": true }, { // 已棄用設置 "json.colorDecorators.enable",請改用 "editor.colorDecorators"。 // 啟用或禁用顏色修飾器 "json.colorDecorators.enable": true, // 啟用或禁用默認 JSON 格式化程序。 "json.format.enable": true, // 計算的大綱符號和折疊區(qū)域的最大數(shù)量(因性能原因而受限)。 "json.maxItemsComputed": 5000, // 啟用后,可以從 http 和 https 位置提取 JSON 架構。 "json.schemaDownload.enable": true, // 將架構關聯(lián)到當前項目中的 JSON 文件。 "json.schemas": [], // 跟蹤 VS Code 和 JSON 語言服務器之間的通信。 "json.trace.server": "off", // 啟用/禁用 JSON 驗證。 "json.validate.enable": true }, { // 啟用/禁用放置到 Markdown editor 中以插入排班。需要啟用 `workbenck.experimental.editor.dropIntoEditor.enabled`。 "markdown.editor.drop.enabled": true, // 控制應在哪里打開 Markdown 文件中的鏈接。 // - currentGroup: 打開活動編輯器組中的鏈接。 // - beside: 打開活動編輯器旁邊的鏈接。 "markdown.links.openLocation": "currentGroup", // 設置換行符在 Markdown 預覽中的呈現(xiàn)方式。如果將其設置為 "true",則將為段落內(nèi)的新行創(chuàng)建一個 。 "markdown.preview.breaks": false, // 在 Markdown 預覽中雙擊切換到編輯器。 "markdown.preview.doubleClickToSwitchToEditor": true, // 控制 Markdown 預覽中使用的字體系列。 "markdown.preview.fontFamily": "-apple-system, BlinkMacSystemFont, 'Segoe WPC', 'Segoe UI', system-ui, 'Ubuntu', 'Droid Sans', sans-serif", // 控制 Markdown 預覽中使用的字號(以像素為單位)。 "markdown.preview.fontSize": 14, // 控制 Markdown 預覽中使用的行高。此數(shù)值與字號相關。 "markdown.preview.lineHeight": 1.6, // 在 Markdown 預覽中啟用或禁用將類似 URL 的文本轉(zhuǎn)換為鏈接的操作。 "markdown.preview.linkify": true, // 在 Markdown 預覽中標記當前的編輯器選定內(nèi)容。 "markdown.preview.markEditorSelection": true, // 控制如何打開 Markdown 預覽中其他 Markdown 文件的鏈接。 // - inPreview: 嘗試在 Markdown 預覽中打開鏈接。 // - inEditor: 嘗試在編輯器中打開鏈接。 "markdown.preview.openMarkdownLinks": "inPreview", // 滾動 Markdown 預覽時,更新其編輯器視圖。 "markdown.preview.scrollEditorWithPreview": true, // 滾動 Markdown 編輯器時,更新其預覽視圖。 "markdown.preview.scrollPreviewWithEditor": true, // 在 Markdown 預覽中啟用或禁用一些與語言無關的替換和引文美化。 "markdown.preview.typographer": false, // 要從 Markdown 預覽使用的 CSS 樣式表的 URL 或本地路徑的列表。相對路徑解釋為相對于資源管理器中打開的文件夾。如果沒有打開的文件夾,則解釋為相對于 Markdown 文件的位置。所有 '\' 都需寫為 '\\'。 "markdown.styles": [], // 啟用/禁用 Markdown 鏈接的路徑建議 "markdown.suggest.paths.enabled": true, // 對 Markdown 擴展啟用調(diào)試日志記錄。 "markdown.trace": "off" }, { // 控制是否啟用內(nèi)置 PHP 語言建議。支持對 PHP 全局變量和變量進行建議。 "php.suggest.basic": true, // 啟用/禁用內(nèi)置的 PHP 驗證。 "php.validate.enable": true, // 指向 PHP 可執(zhí)行文件。 "php.validate.executablePath": null, // 不管 linter 是在 save 還是在 type 上運行。 "php.validate.run": "onSave" }, { // 啟用/禁用 JSX 標記的自動關閉。 "javascript.autoClosingTags": true, // 啟用/禁用 JavaScript 格式化程序。 "javascript.format.enable": true, // 定義逗號分隔符后面的空格處理。 "javascript.format.insertSpaceAfterCommaDelimiter": true, // 定義構造函數(shù)關鍵字后面的空格處理方式。 "javascript.format.insertSpaceAfterConstructor": false, // 定義匿名函數(shù)的函數(shù)關鍵字后面的空格處理。 "javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": true, // 定義控制流語句中關鍵字后面的空格處理。 "javascript.format.insertSpaceAfterKeywordsInControlFlowStatements": true, // 定義空大括號中左括號后和右括號前的空格處理方式。 "javascript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": true, // 定義 JSX 表達式括號中左括號后和右括號前的空格處理方式。 "javascript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false, // 定義非空大括號中左括號后和右括號前的空格處理方式。 "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true, // 定義非空中括號的左括號后和右括號前的空格處理方式。 "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false, // 定義非空小括號的左括號后和右括號前的空格處理方式。 "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false, // 定義模板字符串括號中左括號后和右括號前的空格處理方式。 "javascript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false, // 定義 for 語句中分號之后的空格處理方式。 "javascript.format.insertSpaceAfterSemicolonInForStatements": true, // 定義二進制運算符后面的空格處理 "javascript.format.insertSpaceBeforeAndAfterBinaryOperators": true, // 定義函數(shù)參數(shù)括號前的空格處理方式。 "javascript.format.insertSpaceBeforeFunctionParenthesis": false, // 定義控制塊的左括號是否放置在新的一行。 "javascript.format.placeOpenBraceOnNewLineForControlBlocks": false, // 定義函數(shù)的左大括號是否放置在新的一行。 "javascript.format.placeOpenBraceOnNewLineForFunctions": false, // 定義非必要分號的處理方式。要求在工作區(qū)內(nèi)使用 TypeScript 3.7 或更高版本。 // - ignore: 不要插入或刪除任何分號。 // - insert: 在語句末尾插入分號。 // - remove: 刪除不必要的分號。 "javascript.format.semicolons": "ignore", // 為支持 `js/ts.implicitProjectConfig.checkJs`,已棄用此設置。 // 啟用或禁用 JavaScript 文件的語義檢查?,F(xiàn)有 `jsconfig.json` 或 `tsconfig.json` 文件將覆蓋此設置。 "javascript.implicitProjectConfig.checkJs": false, // 為支持 `js/ts.implicitProjectConfig.experimentalDecorators`,已棄用此設置。 // 在不屬于任何工程的 JavaScript 文件中啟用或禁用 `experimentalDecorators`?,F(xiàn)有 `jsconfig.json` 或 `tsconfig.json` 文件將覆蓋此設置。 "javascript.implicitProjectConfig.experimentalDecorators": false, // 啟用/禁用枚舉聲明中成員值的嵌入提示: // ```typescript // // enum MyValue { // A /* = 0 */; // B /* = 1 */; // } // // ``` // 需要在工作區(qū)中使用 TypeScript 4.4+。 "javascript.inlayHints.enumMemberValues.enabled": false, // 啟用/禁用函數(shù)簽名上隱式返回類型的 inlay 提示: // ```typescript // // function foo() /* :number */ { // return Date.now(); // } // // ``` // 需要在工作區(qū)中使用 TypeScript 4.4+。 "javascript.inlayHints.functionLikeReturnTypes.enabled": false, // 啟用/禁用參數(shù)名的 inlay 提示: // ```typescript // // parseInt(/* str: */ '123', /* radix: */ 8) // // ``` // 需要在工作區(qū)中使用 TypeScript 4.4+。 // - none: 禁用參數(shù)名稱提示。 // - literals: 僅啟用文本參數(shù)的參數(shù)名稱提示。 // - all: 啟用文本和非文本參數(shù)的參數(shù)名稱提示。 "javascript.inlayHints.parameterNames.enabled": "none", // 對于文本與參數(shù)名稱完全相同的參數(shù),抑制其參數(shù)名稱提示。 "javascript.inlayHints.parameterNames.suppressWhenArgumentMatchesName": true, // 啟用/禁用隱式參數(shù)類型的 inlay 提示: // ```typescript // // el.addEventListener('click', e /* :MouseEvent */ => ...) // // ``` // 需要在工作區(qū)中使用 TypeScript 4.4+。 "javascript.inlayHints.parameterTypes.enabled": false, // 在屬性聲明上啟用/禁用隱式類型的內(nèi)嵌提示: // ```typescript // // class Foo { // prop /* :number */ = Date.now(); // } // // ``` // 需要在工作區(qū)中使用 TypeScript 4.4+。 "javascript.inlayHints.propertyDeclarationTypes.enabled": false, // 啟用/禁用隱式變量類型的 inlay 提示: // ```typescript // // const foo /* :number */ = Date.now(); // // ``` // 要求在工作區(qū)中使用 TypeScript 4.4+。 "javascript.inlayHints.variableTypes.enabled": false, // 自動 import 語句中路徑的首選樣式。 // - shortest: 僅當有路徑段少于相關導入路徑段的不相關導入時,才首選不相關導入。 // - relative: 首選導入文件位置的相對路徑。 // - non-relative: 根據(jù)在 `jsconfig.json` / `tsconfig.json` 中配置的 `baseUrl` 或 `paths` 首選不相關導入。 // - project-relative: 僅當相關導入路徑將離開包或項目目錄時,才首選不相關導入。需要在工作區(qū)中使用 TypeScript 4.2+。 "javascript.preferences.importModuleSpecifier": "shortest", // 自動導入的首選路徑結尾。需要在工作區(qū)中使用 TypeScript 4.5+。 // - auto: 使用項目設置選擇默認值。 // - minimal: 將 "./component/index.js" 縮短為 "./component"。 // - index: 將 "./component/index.js" 縮短為 "./component/index"。 // - js: 不要縮短路徑結尾;包括".js"擴展名。 "javascript.preferences.importModuleSpecifierEnding": "auto", // JSX 屬性完成的首選樣式。 // - auto: 根據(jù)屬性類型,在屬性名稱后插入 `={}` or `=""`。請參見 `javascript.preferences.quoteStyle`,控制用于字符串屬性的引號樣式。 // - braces: 在屬性名稱后插入 `={}`。 // - none: 僅插入屬性名稱。 "javascript.preferences.jsxAttributeCompletionStyle": "auto", // 用于快速修復的首選引號樣式。 // - auto: 從現(xiàn)有代碼推斷引號類型 // - single: 始終使用單引號: `'` // - double: 始終使用雙引號: `"` "javascript.preferences.quoteStyle": "auto", // 設置 "typescript.preferences.renameShorthandProperties" 已被棄用,取而代之的是 "typescript.preferences.useAliasesForRenames" // 允許/禁止在重命名期間向?qū)ο笏儆泴傩砸雱e名。需要在工作區(qū)中使用 TypeScript 3.4 或更高版本。 "javascript.preferences.renameShorthandProperties": true, // 允許/禁止在重命名期間向?qū)ο笏儆泴傩砸雱e名。需要在工作區(qū)中使用 TypeScript 3.4 或更高版本。 "javascript.preferences.useAliasesForRenames": true, // 啟用/禁用在 JavaScript 文件中引用 CodeLens。 "javascript.referencesCodeLens.enabled": false, // 啟用/禁用在 JavaScript 文件中對所有函數(shù)的 CodeLens 引用。 "javascript.referencesCodeLens.showOnAllFunctions": false, // 啟用/禁用自動導入建議。 "javascript.suggest.autoImports": true, // 啟用/禁用類成員的代碼段完成。需要在工作區(qū)中使用 TypeScript 4.5+ "javascript.suggest.classMemberSnippets.enabled": true, // 完成函數(shù)的參數(shù)簽名。 "javascript.suggest.completeFunctionCalls": false, // 啟用/禁用對完成 JSDoc 注釋的建議。 "javascript.suggest.completeJSDocs": true, // 啟用或禁用自動完成建議。 "javascript.suggest.enabled": true, // 啟用/禁用顯示可能未定義的值的完成情況,這些值會插入可選的鏈式調(diào)用。需要啟用 TS 3.7+ 和嚴格的空檢查。 "javascript.suggest.includeAutomaticOptionalChainCompletions": true, // 在部分鍵入的導入語句上啟用/禁用自動導入樣式的補全。需要在工作區(qū)中使用 TypeScript 4.3+。 "javascript.suggest.includeCompletionsForImportStatements": true, // 啟用/禁用生成 JSDoc 模板的 \"@returns\" 批注。需要在工作區(qū)中使用 TypeScript 4.2+。 "javascript.suggest.jsdoc.generateReturns": true, // 啟用/禁用在 JavaScript 建議中包含文件中的唯一名稱。請注意,在使用`@ts-check`或`checkJs`進行語義檢查的 JavaScript 代碼中,名稱建議始終處于禁用狀態(tài)。 "javascript.suggest.names": true, // 在 import 語句和 require 調(diào)用中,啟用或禁用路徑建議。 "javascript.suggest.paths": true, // 啟用或禁用編輯器中 JavaScript 文件的建議診斷。 "javascript.suggestionActions.enabled": true, // 啟用或禁用在 VS Code 中重命名或移動文件時自動更新導入路徑的功能。 // - prompt: 在每次重命名時進行提示。 // - always: 始終自動更新路徑。 // - never: 一律不要重命名路徑,也不要提示。 "javascript.updateImportsOnFileMove.enabled": "prompt", // 啟用/禁用 JavaScript 驗證。 "javascript.validate.enable": true, // 啟用或禁用 JavaScript 文件的語義檢查?,F(xiàn)有 `jsconfig.json` 或 `tsconfig.json` 文件將覆蓋此設置。 "js/ts.implicitProjectConfig.checkJs": false, // 在不屬于任何工程的 JavaScript 文件中啟用或禁用 `experimentalDecorators`?,F(xiàn)有 `jsconfig.json` 或 `tsconfig.json` 文件將覆蓋此設置。 "js/ts.implicitProjectConfig.experimentalDecorators": false, // 設置程序的模塊系統(tǒng)。查看詳細信息: https://www.typescriptlang.org/tsconfig#module。 "js/ts.implicitProjectConfig.module": "ESNext", // 在不屬于項目的 JavaScript 和 TypeScript 文件中啟用/禁用[嚴格函數(shù)類型](https://www.typescriptlang.org/tsconfig#strictFunctionTypes)?,F(xiàn)有 `jsconfig.json` 或 `tsconfig.json` 文件將替代此設置。 "js/ts.implicitProjectConfig.strictFunctionTypes": true, // 在不屬于項目的 JavaScript 和 TypeScript 文件中啟用/禁用[嚴格 null 檢查](https://www.typescriptlang.org/tsconfig#strictNullChecks)?,F(xiàn)有 `jsconfig.json` 或 `tsconfig.json` 文件將替代此設置。 "js/ts.implicitProjectConfig.strictNullChecks": false, // 為發(fā)出的 JavaScript 設置目標 JavaScript 語言版本并包含庫聲明。查看詳細信息: https://www.typescriptlang.org/tsconfig#target。 "js/ts.implicitProjectConfig.target": "ES2020", // 啟用/禁用 JSX 標記的自動關閉。 "typescript.autoClosingTags": true, // 檢查是否為 [自動類型獲取](https://code.visualstudio.com/docs/nodejs/working-with-javascript#_typings-and-automatic-type-acquisition) 安裝了 npm 。 "typescript.check.npmIsInstalled": true, // 禁用 [自動類型獲取](https://code.visualstudio.com/docs/nodejs/working-with-javascript#_typings-and-automatic-type-acquisition) 。自動類型獲取可以從 npm 提取 `@types` 包來改進外部庫的 IntelliSense。 "typescript.disableAutomaticTypeAcquisition": false, // 允許提示用戶對 Intellisense 使用在工作區(qū)中配置的 TypeScript 版本。 "typescript.enablePromptUseWorkspaceTsdk": false, // 啟用/禁用默認 TypeScript 格式化程序。 "typescript.format.enable": true, // 定義逗號分隔符后面的空格處理。 "typescript.format.insertSpaceAfterCommaDelimiter": true, // 定義構造函數(shù)關鍵字后面的空格處理方式。 "typescript.format.insertSpaceAfterConstructor": false, // 定義匿名函數(shù)的函數(shù)關鍵字后面的空格處理。 "typescript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": true, // 定義控制流語句中關鍵字后面的空格處理。 "typescript.format.insertSpaceAfterKeywordsInControlFlowStatements": true, // 定義空大括號中左括號后和右括號前的空格處理方式。 "typescript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": true, // 定義 JSX 表達式括號中左括號后和右括號前的空格處理方式。 "typescript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false, // 定義非空大括號中左括號后和右括號前的空格處理方式。 "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true, // 定義非空中括號的左括號后和右括號前的空格處理方式。 "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false, // 定義非空小括號的左括號后和右括號前的空格處理方式。 "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false, // 定義模板字符串括號中左括號后和右括號前的空格處理方式。 "typescript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false, // 定義 for 語句中分號之后的空格處理方式。 "typescript.format.insertSpaceAfterSemicolonInForStatements": true, // 定義 TypeScript 中類型斷言后的空格處理方式。 "typescript.format.insertSpaceAfterTypeAssertion": false, // 定義二進制運算符后面的空格處理 "typescript.format.insertSpaceBeforeAndAfterBinaryOperators": true, // 定義函數(shù)參數(shù)括號前的空格處理方式。 "typescript.format.insertSpaceBeforeFunctionParenthesis": false, // 定義控制塊的左括號是否放置在新的一行。 "typescript.format.placeOpenBraceOnNewLineForControlBlocks": false, // 定義函數(shù)的左大括號是否放置在新的一行。 "typescript.format.placeOpenBraceOnNewLineForFunctions": false, // 定義非必要分號的處理方式。要求在工作區(qū)內(nèi)使用 TypeScript 3.7 或更高版本。 // - ignore: 不要插入或刪除任何分號。 // - insert: 在語句末尾插入分號。 // - remove: 刪除不必要的分號。 "typescript.format.semicolons": "ignore", // 啟用或禁用實現(xiàn) CodeLens。此 CodeLens 顯示接口的實現(xiàn)。 "typescript.implementationsCodeLens.enabled": false, // 啟用/禁用枚舉聲明中成員值的嵌入提示: // ```typescript // // enum MyValue { // A /* = 0 */; // B /* = 1 */; // } // // ``` // 需要在工作區(qū)中使用 TypeScript 4.4+。 "typescript.inlayHints.enumMemberValues.enabled": false, // 啟用/禁用函數(shù)簽名上隱式返回類型的 inlay 提示: // ```typescript // // function foo() /* :number */ { // return Date.now(); // } // // ``` // 需要在工作區(qū)中使用 TypeScript 4.4+。 "typescript.inlayHints.functionLikeReturnTypes.enabled": false, // 啟用/禁用參數(shù)名的 inlay 提示: // ```typescript // // parseInt(/* str: */ '123', /* radix: */ 8) // // ``` // 需要在工作區(qū)中使用 TypeScript 4.4+。 // - none: 禁用參數(shù)名稱提示。 // - literals: 僅啟用文本參數(shù)的參數(shù)名稱提示。 // - all: 啟用文本和非文本參數(shù)的參數(shù)名稱提示。 "typescript.inlayHints.parameterNames.enabled": "none", // 對于文本與參數(shù)名稱完全相同的參數(shù),抑制其參數(shù)名稱提示。 "typescript.inlayHints.parameterNames.suppressWhenArgumentMatchesName": true, // 啟用/禁用隱式參數(shù)類型的 inlay 提示: // ```typescript // // el.addEventListener('click', e /* :MouseEvent */ => ...) // // ``` // 需要在工作區(qū)中使用 TypeScript 4.4+。 "typescript.inlayHints.parameterTypes.enabled": false, // 在屬性聲明上啟用/禁用隱式類型的內(nèi)嵌提示: // ```typescript // // class Foo { // prop /* :number */ = Date.now(); // } // // ``` // 需要在工作區(qū)中使用 TypeScript 4.4+。 "typescript.inlayHints.propertyDeclarationTypes.enabled": false, // 啟用/禁用隱式變量類型的 inlay 提示: // ```typescript // // const foo /* :number */ = Date.now(); // // ``` // 要求在工作區(qū)中使用 TypeScript 4.4+。 "typescript.inlayHints.variableTypes.enabled": false, // 設置在報告 JavaScript 和 TypeScript 錯誤時使用的區(qū)域設置。默認使用 VS Code 的區(qū)域設置。 "typescript.locale": "auto", // 自動 import 語句中路徑的首選樣式。 // - shortest: 僅當有路徑段少于相關導入路徑段的不相關導入時,才首選不相關導入。 // - relative: 首選導入文件位置的相對路徑。 // - non-relative: 根據(jù)在 `jsconfig.json` / `tsconfig.json` 中配置的 `baseUrl` 或 `paths` 首選不相關導入。 // - project-relative: 僅當相關導入路徑將離開包或項目目錄時,才首選不相關導入。需要在工作區(qū)中使用 TypeScript 4.2+。 "typescript.preferences.importModuleSpecifier": "shortest", // 自動導入的首選路徑結尾。需要在工作區(qū)中使用 TypeScript 4.5+。 // - auto: 使用項目設置選擇默認值。 // - minimal: 將 "./component/index.js" 縮短為 "./component"。 // - index: 將 "./component/index.js" 縮短為 "./component/index"。 // - js: 不要縮短路徑結尾;包括".js"擴展名。 "typescript.preferences.importModuleSpecifierEnding": "auto", // 允許/禁止在 "package.json" 依賴項中搜索可用的自動導入。 // - auto: 根據(jù)預估的性能影響搜索依賴項。 // - on: 始終搜索依賴項。 // - off: 從不搜索依賴項。 "typescript.preferences.includePackageJsonAutoImports": "auto", // JSX 屬性完成的首選樣式。 // - auto: 根據(jù)屬性類型,在屬性名稱后插入 `={}` or `=""`。請參見 `typescript.preferences.quoteStyle`,控制用于字符串屬性的引號樣式。 // - braces: 在屬性名稱后插入 `={}`。 // - none: 僅插入屬性名稱。 "typescript.preferences.jsxAttributeCompletionStyle": "auto", // 用于快速修復的首選引號樣式。 // - auto: 從現(xiàn)有代碼推斷引號類型 // - single: 始終使用單引號: `'` // - double: 始終使用雙引號: `"` "typescript.preferences.quoteStyle": "auto", // 設置 "typescript.preferences.renameShorthandProperties" 已被棄用,取而代之的是 "typescript.preferences.useAliasesForRenames" // 允許/禁止在重命名期間向?qū)ο笏儆泴傩砸雱e名。需要在工作區(qū)中使用 TypeScript 3.4 或更高版本。 "typescript.preferences.renameShorthandProperties": true, // 允許/禁止在重命名期間向?qū)ο笏儆泴傩砸雱e名。需要在工作區(qū)中使用 TypeScript 3.4 或更高版本。 "typescript.preferences.useAliasesForRenames": true, // 在 TypeScript 文件中啟用或禁用引用 CodeLens。 "typescript.referencesCodeLens.enabled": false, // 啟用/禁用在 TypeScript 文件中的所有函數(shù)上引用 CodeLens。 "typescript.referencesCodeLens.showOnAllFunctions": false, // 將風格檢查的問題報告為警告。 "typescript.reportStyleChecksAsWarnings": true, // 啟用/禁用自動導入建議。 "typescript.suggest.autoImports": true, // 啟用/禁用類成員的代碼段完成。需要在工作區(qū)中使用 TypeScript 4.5+ "typescript.suggest.classMemberSnippets.enabled": true, // 完成函數(shù)的參數(shù)簽名。 "typescript.suggest.completeFunctionCalls": false, // 啟用/禁用對完成 JSDoc 注釋的建議。 "typescript.suggest.completeJSDocs": true, // 啟用或禁用自動完成建議。 "typescript.suggest.enabled": true, // 啟用/禁用顯示可能未定義的值的完成情況,這些值會插入可選的鏈式調(diào)用。需要啟用 TS 3.7+ 和嚴格的空檢查。 "typescript.suggest.includeAutomaticOptionalChainCompletions": true, // 在部分鍵入的導入語句上啟用/禁用自動導入樣式的補全。需要在工作區(qū)中使用 TypeScript 4.3+。 "typescript.suggest.includeCompletionsForImportStatements": true, // 從 TS 服務器啟用/禁用片段補全。需要在工作區(qū)中使用 TypeScript 4.3+。 "typescript.suggest.includeCompletionsWithSnippetText": true, // 啟用/禁用生成 JSDoc 模板的 \"@returns\" 批注。需要在工作區(qū)中使用 TypeScript 4.2+。 "typescript.suggest.jsdoc.generateReturns": true, // 啟用/禁用對象文本中的方法的代碼片段完成。需要在工作區(qū)中使用 TypeScript 4.7+ "typescript.suggest.objectLiteralMethodSnippets.enabled": true, // 在 import 語句和 require 調(diào)用中,啟用或禁用路徑建議。 "typescript.suggest.paths": true, // 啟用或禁用編輯器中 TypeScript 文件的建議診斷。 "typescript.suggestionActions.enabled": true, // 啟用或禁用偶爾出現(xiàn)的有關 JavaScript 和 TypeScript 的調(diào)查,幫助我們改善 VS Code 對兩者的支持。 "typescript.surveys.enabled": true, // 控制對 tsc 任務的自動檢測。 // - on: 同時創(chuàng)建生成和監(jiān)視任務。 // - off: 禁用此功能。 // - build: 僅創(chuàng)建單次運行編譯任務。 // - watch: 僅創(chuàng)建編譯和監(jiān)視任務。 "typescript.tsc.autoDetect": "on", // 指定 TypeScript 安裝下用于 IntelliSense 的 tsserver 和 `lib*.d.ts` 文件的文件夾路徑,例如: `./node_modules/typescript/lib`。 // // - 當指定為用戶設置時,`typescript.tsdk` 中的 TypeScript 版本會自動替換內(nèi)置的 TypeScript 版本。 // - 當指定為工作區(qū)設置時,`typescript.tsdk` 允許通過 `TypeScript: Select TypeScript version` 命令切換為對 IntelliSense 使用 TypeScript 的該工作區(qū)版本。 // // 有關管理 TypeScript 版本的更多詳細信息,請參閱 [TypeScript文檔](https://code.visualstudio.com/docs/typescript/typescript-compiling#_using-newer-typescript-versions)。 "typescript.tsdk": "", // 允許將 TS 服務器性能跟蹤保持到目錄。這些跟蹤文件可用于診斷 TS 服務器性能問題。日志可能包含你的項目中的文件路徑、源代碼和其他可能敏感的信息。 "typescript.tsserver.enableTracing": false, // (實驗性)啟用項目范圍的錯誤報告。 "typescript.tsserver.experimental.enableProjectDiagnostics": false, // 將 TS 服務器的日志保存到一個文件。此日志可用于診斷 TS 服務器問題。日志可能包含你的項目中的文件路徑、源代碼和其他可能敏感的信息。 "typescript.tsserver.log": "off", // 要分配給 TypeScript 服務器進程的最大內(nèi)存量(MB)。 "typescript.tsserver.maxTsServerMemory": 3072, // 對發(fā)送到 TS 服務器的消息啟用跟蹤。此跟蹤信息可用于診斷 TS 服務器問題。 跟蹤信息可能包含你的項目中的文件路徑、源代碼和其他可能敏感的信息。 "typescript.tsserver.trace": "off", // 此設置已棄用,取而代之的是“typescript.tsserver.useSyntaxServer”。 // 允許/禁止生成單獨的 TypeScript 服務器,該服務器可更快地響應與語法相關的操作,例如計算折疊或計算文檔符號。需要在工作區(qū)中使用 TypeScript 3.4.0 或更高版本。 "typescript.tsserver.useSeparateSyntaxServer": true, // 控制 TypeScript 是否啟動專用服務器,以便更快地處理與語法相關的運算,如計算代碼折疊。 // - always: 使用更加輕量級的語法服務器來處理所有 IntelliSense 運算。此語法服務器只能為打開的文件提供 IntelliSense。 // - never: 請不要使用專用的語法服務器。使用單個服務器來處理所有 IntelliSense 運算。 // - auto: 生成一個完整的服務器和一個專用于語法運算的輕量級服務器。語法服務器用于加快語法運算并在加載項目時提供 IntelliSense。 "typescript.tsserver.useSyntaxServer": "auto", // 配置應使用哪些監(jiān)視策略來跟蹤文件和目錄。需要在工作區(qū)中使用 TypeScript 3.8+。 "typescript.tsserver.watchOptions": {}, // 啟用或禁用在 VS Code 中重命名或移動文件時自動更新導入路徑的功能。 // - prompt: 在每次重命名時進行提示。 // - always: 始終自動更新路徑。 // - never: 一律不要重命名路徑,也不要提示。 "typescript.updateImportsOnFileMove.enabled": "prompt", // 啟用/禁用 TypeScript 驗證。 "typescript.validate.enable": true, // 通過[轉(zhuǎn)到工作區(qū)中的符號](https://code.visualstudio.com/docs/editor/editingevolved#_open-symbol-by-name)來控制搜索的具體文件。 // - allOpenProjects: 在所有打開的 JavaScript 或 TypeScript 項目中搜索符號。需要在工作區(qū)中使用 TypeScript 3.9 或更高版本。 // - currentProject: 僅在當前 JavaScript 或 TypeScript 項目中搜索符號。 "typescript.workspaceSymbols.scope": "allOpenProjects" }, { // 配置何時自動打開“錯誤速覽”視圖。 // - failureAnywhere: 無論故障在何處,都自動打開。 // - failureInVisibleDocument: 在可見文檔中測試失敗時自動打開。 // - never: 從不自動打開。 "testing.automaticallyOpenPeekView": "failureInVisibleDocument", // 控制是否在自動運行模式期間自動打開“速覽”視圖。 "testing.automaticallyOpenPeekViewDuringAutoRun": false, // 將測試標記為過時并啟動新運行后等待的時間(以毫秒為單位)。 "testing.autoRun.delay": 1000, // 控制自動運行哪些測試。 // - all: 自動運行切換時,自動運行已發(fā)現(xiàn)的所有測試。在各個測試發(fā)生更改時重新運行它們。 // - rerun: 在各個測試發(fā)生更改時重新運行它們。不會自動運行尚未執(zhí)行的任何測試。 "testing.autoRun.mode": "all", // 控制在裝訂線中左鍵單擊測試修飾時要執(zhí)行的操作。 // - run: 運行測試。 // - debug: 調(diào)試測試。 // - contextMenu: 打開上下文菜單以獲取更多選項。 "testing.defaultGutterClickAction": "run", // 控制在測試資源管理器視圖中是否應遵循正在運行的測試 "testing.followRunningTest": true, // 控制是否在編輯器裝訂線中顯示測試修飾。 "testing.gutterEnabled": true, // 控制何時打開測試視圖。 // - neverOpen: 從不自動打開測試視圖 // - openOnTestStart: 在測試啟動時打開測試視圖 // - openOnTestFailure: 任何測試失敗時打開測試視圖 "testing.openTesting": "openOnTestStart", // 控制是否在運行測試之前保存所有臟編輯器。 "testing.saveBeforeTest": true }, { // 補全 CSS 屬性時在行尾插入分號。 "css.completion.completePropertyWithSemicolon": true, // 默認情況下,VS Code 在選擇 CSS 屬性后觸發(fā)屬性值完成。使用此設置可禁用此行為。 "css.completion.triggerPropertyValueCompletion": true, // 一個相對文件路徑列表,這些路徑指向采用[自定義數(shù)據(jù)格式](https://github.com/microsoft/vscode-css-languageservice/blob/master/docs/customData.md)的 JSON 文件。 // // VS Code 在啟動時加載自定義數(shù)據(jù),從而增強它對你在 JSON 文件中指定的自定義 CSS 屬性、at 指令、偽類和偽元素的 CSS 支持。 // // 這些文件路徑與工作區(qū)相對,且只考慮工作區(qū)文件夾設置。 "css.customData": [], // 將大括號放在規(guī)則的同一行(`折疊`)或?qū)⒋罄ㄌ柗旁谧约核谛猩?`展開`)。 "css.format.braceStyle": "collapse", // 啟用/禁用默認的 CSS 格式化程序。 "css.format.enable": true, // 啟用 `css.format.preserveNewLines` 后要在一個區(qū)塊中保留的最大換行符數(shù)。 "css.format.maxPreserveNewLines": null, // 用空白行分隔規(guī)則集。 "css.format.newlineBetweenRules": true, // 用新行分隔選擇器。 "css.format.newlineBetweenSelectors": true, // 是否應保留元素之前的現(xiàn)有換行符。 "css.format.preserveNewLines": true, // 確保選擇器分隔符 \">\"、\"+\"、\"~\" (例如 \"a > b\")周圍有空格字符。 "css.format.spaceAroundSelectorSeparator": false, // 在 CSS 懸停時顯示標記和屬性文檔。 "css.hover.documentation": true, // 在 CSS 懸停時顯示 MDN 的引用。 "css.hover.references": true, // 參數(shù)數(shù)目無效。 "css.lint.argumentsInColorFunction": "error", // 在使用 `padding` 或 `border` 時,不要使用 `width` 或 `height`。 "css.lint.boxModel": "ignore", // 使用廠商特定的前綴時,同時添加所有其他廠商特定的屬性。 "css.lint.compatibleVendorPrefixes": "ignore", // 不要使用重復的樣式定義。 "css.lint.duplicateProperties": "ignore", // 不要使用空規(guī)則集。 "css.lint.emptyRules": "warning", // 避免使用 `float`。浮動會使 CSS 變得脆弱。即使只更改了一部分布局,也很容易造成破壞。 "css.lint.float": "ignore", // `@font-face` 規(guī)則必須定義 `src` 和 `font-family` 屬性。 "css.lint.fontFaceProperties": "warning", // 十六進制顏色必須由三個或六個十六進制數(shù)字組成。 "css.lint.hexColorLength": "error", // 選擇器不應包含 ID,因為這些規(guī)則與 HTML 的耦合過于緊密。 "css.lint.idSelector": "ignore", // 僅在需要支持 IE7 及更低版本時,才需要 IE hack。 "css.lint.ieHack": "ignore", // 避免使用 `!important`。它表明整個 CSS 的優(yōu)先級已經(jīng)失去控制且需要進行重構。 "css.lint.important": "ignore", // import 語句沒有并行加載。 "css.lint.importStatement": "ignore", // 由于 `display` 屬性值,屬性被忽略。例如,使用 `display: inline` 時,`width`、`height`、`margin-top`、`margin-bottom` 和 `float` 屬性將不起作用。 "css.lint.propertyIgnoredDueToDisplay": "warning", // 通配選擇符 (`*`) 的運行效率低。 "css.lint.universalSelector": "ignore", // 未知的 @ 規(guī)則。 "css.lint.unknownAtRules": "warning", // 未知的屬性。 "css.lint.unknownProperties": "warning", // 未知的供應商特定屬性。 "css.lint.unknownVendorSpecificProperties": "ignore", // 不根據(jù) "unknownProperties" 規(guī)則進行驗證的屬性列表。 "css.lint.validProperties": [], // 使用廠商特定的前綴時,同時添加標準屬性。 "css.lint.vendorPrefix": "warning", // 零不需要單位。 "css.lint.zeroUnits": "ignore", // 跟蹤 VS Code 與 CSS 語言服務器之間的通信。 "css.trace.server": "off", // 啟用或禁用所有驗證。 "css.validate": true }, { // 補全 CSS 屬性時在行尾插入分號。 "less.completion.completePropertyWithSemicolon": true, // 默認情況下,VS Code 在選擇 CSS 屬性后觸發(fā)屬性值完成。使用此設置可禁用此行為。 "less.completion.triggerPropertyValueCompletion": true, // 將大括號放在規(guī)則的同一行(`折疊`)或?qū)⒋罄ㄌ柗旁谧约核谛猩?`展開`)。 "less.format.braceStyle": "collapse", // 啟用/禁用默認的 LESS 格式化程序。 "less.format.enable": true, // 啟用 `less.format.preserveNewLines` 后要在一個區(qū)塊中保留的最大換行符數(shù)。 "less.format.maxPreserveNewLines": null, // 用空白行分隔規(guī)則集。 "less.format.newlineBetweenRules": true, // 用新行分隔選擇器。 "less.format.newlineBetweenSelectors": true, // 是否應保留元素之前的現(xiàn)有換行符。 "less.format.preserveNewLines": true, // 確保選擇器分隔符 \">\"、\"+\"、\"~\" (例如 \"a > b\")周圍有空格字符。 "less.format.spaceAroundSelectorSeparator": false, // 在 LESS 懸停時顯示標記和屬性文檔。 "less.hover.documentation": true, // 在 LESS 懸停時顯示 MDN 的引用。 "less.hover.references": true, // 參數(shù)數(shù)目無效。 "less.lint.argumentsInColorFunction": "error", // 在使用 `padding` 或 `border` 時,不要使用 `width` 或 `height`。 "less.lint.boxModel": "ignore", // 使用廠商特定的前綴時,同時添加所有其他廠商特定的屬性。 "less.lint.compatibleVendorPrefixes": "ignore", // 不要使用重復的樣式定義。 "less.lint.duplicateProperties": "ignore", // 不要使用空規(guī)則集。 "less.lint.emptyRules": "warning", // 避免使用 `float`。浮動會使 CSS 變得脆弱。即使只更改了一部分布局,也很容易造成破壞。 "less.lint.float": "ignore", // `@font-face` 規(guī)則必須定義 `src` 和 `font-family` 屬性。 "less.lint.fontFaceProperties": "warning", // 十六進制顏色必須由三個或六個十六進制數(shù)字組成。 "less.lint.hexColorLength": "error", // 選擇器不應包含 ID,因為這些規(guī)則與 HTML 的耦合過于緊密。 "less.lint.idSelector": "ignore", // 僅在需要支持 IE7 及更低版本時,才需要 IE hack。 "less.lint.ieHack": "ignore", // 避免使用 `!important`。它表明整個 CSS 的優(yōu)先級已經(jīng)失去控制且需要進行重構。 "less.lint.important": "ignore", // import 語句沒有并行加載。 "less.lint.importStatement": "ignore", // 由于 `display` 屬性值,屬性被忽略。例如,使用 `display: inline` 時,`width`、`height`、`margin-top`、`margin-bottom` 和 `float` 屬性將不起作用。 "less.lint.propertyIgnoredDueToDisplay": "warning", // 通配選擇符 (`*`) 的運行效率低。 "less.lint.universalSelector": "ignore", // 未知的 @ 規(guī)則。 "less.lint.unknownAtRules": "warning", // 未知的屬性。 "less.lint.unknownProperties": "warning", // 未知的供應商特定屬性。 "less.lint.unknownVendorSpecificProperties": "ignore", // 不根據(jù) "unknownProperties" 規(guī)則進行驗證的屬性列表。 "less.lint.validProperties": [], // 使用廠商特定的前綴時,同時添加標準屬性。 "less.lint.vendorPrefix": "warning", // 零不需要單位。 "less.lint.zeroUnits": "ignore", // 啟用或禁用所有驗證。 "less.validate": true }, { // 補全 CSS 屬性時在行尾插入分號。 "scss.completion.completePropertyWithSemicolon": true, // 默認情況下,VS Code 在選擇 CSS 屬性后觸發(fā)屬性值完成。使用此設置可禁用此行為。 "scss.completion.triggerPropertyValueCompletion": true, // 將大括號放在規(guī)則的同一行(`折疊`)或?qū)⒋罄ㄌ柗旁谧约核谛猩?`展開`)。 "scss.format.braceStyle": "collapse", // 啟用/禁用默認的 SCSS 格式化程序。 "scss.format.enable": true, // 啟用 `scss.format.preserveNewLines` 后要在一個區(qū)塊中保留的最大換行符數(shù)。 "scss.format.maxPreserveNewLines": null, // 用空白行分隔規(guī)則集。 "scss.format.newlineBetweenRules": true, // 用新行分隔選擇器。 "scss.format.newlineBetweenSelectors": true, // 是否應保留元素之前的現(xiàn)有換行符。 "scss.format.preserveNewLines": true, // 確保選擇器分隔符 \">\"、\"+\"、\"~\" (例如 \"a > b\")周圍有空格字符。 "scss.format.spaceAroundSelectorSeparator": false, // 在 SCSS 懸停時顯示標記和屬性文檔。 "scss.hover.documentation": true, // 在 SCSS 懸停時顯示 MDN 的引用。 "scss.hover.references": true, // 參數(shù)數(shù)目無效。 "scss.lint.argumentsInColorFunction": "error", // 在使用 `padding` 或 `border` 時,不要使用 `width` 或 `height`。 "scss.lint.boxModel": "ignore", // 使用廠商特定的前綴時,同時添加所有其他廠商特定的屬性。 "scss.lint.compatibleVendorPrefixes": "ignore", // 不要使用重復的樣式定義。 "scss.lint.duplicateProperties": "ignore", // 不要使用空規(guī)則集。 "scss.lint.emptyRules": "warning", // 避免使用 `float`。浮動會使 CSS 變得脆弱。即使只更改了一部分布局,也很容易造成破壞。 "scss.lint.float": "ignore", // `@font-face` 規(guī)則必須定義 `src` 和 `font-family` 屬性。 "scss.lint.fontFaceProperties": "warning", // 十六進制顏色必須由三個或六個十六進制數(shù)字組成。 "scss.lint.hexColorLength": "error", // 選擇器不應包含 ID,因為這些規(guī)則與 HTML 的耦合過于緊密。 "scss.lint.idSelector": "ignore", // 僅在需要支持 IE7 及更低版本時,才需要 IE hack。 "scss.lint.ieHack": "ignore", // 避免使用 `!important`。它表明整個 CSS 的優(yōu)先級已經(jīng)失去控制且需要進行重構。 "scss.lint.important": "ignore", // import 語句沒有并行加載。 "scss.lint.importStatement": "ignore", // 由于 `display` 屬性值,屬性被忽略。例如,使用 `display: inline` 時,`width`、`height`、`margin-top`、`margin-bottom` 和 `float` 屬性將不起作用。 "scss.lint.propertyIgnoredDueToDisplay": "warning", // 通配選擇符 (`*`) 的運行效率低。 "scss.lint.universalSelector": "ignore", // 未知的 @ 規(guī)則。 "scss.lint.unknownAtRules": "warning", // 未知的屬性。 "scss.lint.unknownProperties": "warning", // 未知的供應商特定屬性。 "scss.lint.unknownVendorSpecificProperties": "ignore", // 不根據(jù) "unknownProperties" 規(guī)則進行驗證的屬性列表。 "scss.lint.validProperties": [], // 使用廠商特定的前綴時,同時添加標準屬性。 "scss.lint.vendorPrefix": "warning", // 零不需要單位。 "scss.lint.zeroUnits": "ignore", // 啟用或禁用所有驗證。 "scss.validate": true }, { // 啟用后,將在離開“擴展”視圖時,自動關閉擴展詳細信息頁面。 "extensions.closeExtensionDetailsOnViewChange": false, // 配置要在其他擴展主機進程中執(zhí)行的擴展。 "extensions.experimental.affinity": {}, // 啟用后,將不會顯示擴展建議的通知。 "extensions.ignoreRecommendations": false, // 已棄用此設置。使用 extensions.ignoreRecommendations 設置來控制建議通知。默認使用“擴展”視圖的可見性操作來隱藏“建議”視圖。 // "extensions.showRecommendationsOnlyOnDemand": false, // 替代擴展的虛擬工作區(qū)支持。 "extensions.supportVirtualWorkspaces": {}, // 啟用 Web Worker 擴展主機。 // - true: Web 輔助角色擴展主機將始終啟動。 // - false: Web 輔助角色擴展主機將永遠不會啟動。 // - auto: Web 輔助角色擴展主機將在 Web 擴展需要時啟動。 "extensions.webWorker": "auto" }, { // 在輸出視圖中啟用或禁用「智能滾動」?!钢悄軡L動」會自動在你點擊輸出視圖時鎖定滾動,并在你點擊最后一行時解鎖滾動。 "output.smartScroll.enabled": true }, { // 控制默認情況下是否折疊交互窗口中的代碼單元格。 "interactiveWindow.collapseCellInputCode": "fromEditor", // 啟用的筆記本痕跡包含代碼單元格時。 "notebook.breadcrumbs.showCodeCells": true, // 控制焦點指示器呈現(xiàn)位置(沿單元格邊框或左側(cè)裝訂線) "notebook.cellFocusIndicator": "gutter", // 應在何處顯示單元格工具欄,或是否隱藏它。 "notebook.cellToolbarLocation": { "default": "right" }, // 是否應在懸?;騿螕魰r顯示單元格工具欄。 "notebook.cellToolbarVisibility": "click", // 控制是否應以緊湊形式呈現(xiàn)筆記本編輯器。例如在打開時,它將減小左邊距寬度。 "notebook.compactView": true, // 控制是否應在輸出工具欄中呈現(xiàn)輸出操作。 "notebook.consolidatedOutputButton": true, // 控制是否在“運行”按鈕旁邊的下拉列表中顯示額外操作。 "notebook.consolidatedRunButton": false, // 是否對筆記本使用增強的文本差異編輯器。 "notebook.diff.enablePreview": true, // 隱藏元數(shù)據(jù)差異 "notebook.diff.ignoreMetadata": false, // 隱藏輸出差異 "notebook.diff.ignoreOutputs": false, // 輸出項 mime 類型的優(yōu)先級列表 "notebook.displayOrder": [], // 控制筆記本編輯器是否應允許通過拖放移動單元格。 "notebook.dragAndDropEnabled": true, // 用于筆記本中使用的代碼編輯器的設置。這可用于自定義大多數(shù)編輯器*設置。 "notebook.editorOptionsCustomizations": {}, // 控制是否在筆記本編輯器中呈現(xiàn)全局工具欄。 "notebook.globalToolbar": true, // 控制筆記本工具欄上的操作是否應呈現(xiàn)標簽。 "notebook.globalToolbarShowLabel": "always", // 控制插入單元格操作應出現(xiàn)的位置。 // - betweenCells: 在單元格之間懸停時顯示的工具欄。 // - notebookToolbar: 位于筆記本編輯器頂部的工具欄。 // - both: 兩個工具欄。 // - hidden: 插入操作不會出現(xiàn)在任何位置。 "notebook.insertToolbarLocation": "both", // 控制單元格編輯器中行號的顯示。 "notebook.lineNumbers": "off", // 控制筆記本中呈現(xiàn)的標記的字號(以像素為單位)。設置為 `0` 時,將使用 120% 的 `editor.fontSize`。 "notebook.markup.fontSize": 0, // 啟用后,當單元格編輯器中的當前光標位于第/最后一行時,光標可以導航到下/上一個單元格。 "notebook.navigation.allowNavigateToSurroundingCells": true, // 啟用筆記本大綱時,顯示代碼單元格。 "notebook.outline.showCodeCells": false, // 控制文本輸出中呈現(xiàn)的文本行數(shù)。 "notebook.output.textLineLimit": 30, // 筆記本單元格輸出文本的字體系列。設置為空時,將使用 `editor.fontFamily`。 "notebook.outputFontFamily": "", // 筆記本單元格輸出文本的字號。如果設置為 0,則使用 `editor.fontSize`。 "notebook.outputFontSize": 0, // 筆記本單元格輸出文本的行高。 // - 將使用介于 0 和 8 之間的值作為字號的乘數(shù)。 // - 將使用大于或等于 8 的值作為有效值。 "notebook.outputLineHeight": 22, // 是否應顯示單元格狀態(tài)欄。 // - hidden: 單元格狀態(tài)欄始終隱藏。 // - visible: 單元格狀態(tài)欄始終可見。 // - visibleAfterExecute: 在執(zhí)行單元格之前,單元格狀態(tài)欄處于隱藏狀態(tài)。之后,其會變?yōu)榭梢娨燥@示執(zhí)行狀態(tài)。 "notebook.showCellStatusBar": "visible", // 控制顯示 Markdown 標頭文件箭頭的時間。 // - always: 折疊控件始終可見。 // - mouseover: 折疊控件僅在鼠標懸停時可見。 "notebook.showFoldingControls": "mouseover", // 是否為每個單元格使用單獨的撤消/重做堆疊。 "notebook.undoRedoPerCell": true }, { // 是否允許在終端中同時按下鍵綁定。請注意,如果設置為 true 且擊鍵導致同時按鍵,則將繞過 `terminal.integrated.commandsToSkipShell`;如果想要按 Ctrl+K 轉(zhuǎn)到 shell (而不是 VS Code),則將此項設置為 false 尤其有用。 "terminal.integrated.allowChords": true, // 是否允許使用菜單欄助記符(如 Alt+F)來觸發(fā)“打開菜單欄”。請注意,這將導致在設為 true 時,所有 Alt 擊鍵都跳過 shell。此設置在 macOS 不起作用。 "terminal.integrated.allowMnemonics": false, // 如果啟用,則當 `editor.multiCursorModifier` 設置為 `'alt'` (默認值)時,alt/option+單擊會將提示光標重置于鼠標下方。此功能的有效性取決于 shell。 "terminal.integrated.altClickMovesCursor": true, // 要在 Linux 上用于自動化相關終端使用(如任務和調(diào)試)的終端配置文件。如果設置了 `terminal.integrated.automationShell.linux`,則當前將忽略此設置。 "terminal.integrated.automationProfile.linux": null, // 要在 macOS 上用于自動化相關終端使用(如任務和調(diào)試)的終端配置文件。如果設置了 `terminal.integrated.automationShell.osx`,則當前將忽略此設置。 "terminal.integrated.automationProfile.osx": null, // 用于自動化相關終端使用(如任務和調(diào)試)的終端配置文件。如果設置了 `terminal.integrated.automationShell.windows`,則當前將忽略此設置。 "terminal.integrated.automationProfile.windows": null, // 已棄用此方法,新的配置自動化 shell 的建議方法是使用 `terminal.integrated.automationProfile.linux` 創(chuàng)建終端自動化配置文件。此方法目前優(yōu)先于新的自動化配置文件設置,但將來會發(fā)生更改。 // 一個路徑,設置后將替代 `terminal.integrated.shell.linux`,并忽略與自動化相關的終端使用情況(例如任務和調(diào)試)的 `shellArgs` 個值。 "terminal.integrated.automationShell.linux": null, // 已棄用此方法,新的配置自動化 shell 的建議方法是使用 `terminal.integrated.automationProfile.osx` 創(chuàng)建終端自動化配置文件。此方法目前優(yōu)先于新的自動化配置文件設置,但將來會發(fā)生更改。 // 一個路徑,設置后將替代 `terminal.integrated.shell.osx`,并忽略與自動化相關的終端使用情況(例如任務和調(diào)試)的 `shellArgs` 個值。 "terminal.integrated.automationShell.osx": null, // 已棄用此方法,新的配置自動化 shell 的建議方法是使用 `terminal.integrated.automationProfile.windows` 創(chuàng)建終端自動化配置文件。此方法目前優(yōu)先于新的自動化配置文件設置,但將來會發(fā)生更改。 // 一個路徑,設置后將替代 `terminal.integrated.shell.windows`,并忽略與自動化相關的終端使用情況(例如任務和調(diào)試)的 `shellArgs` 值。 "terminal.integrated.automationShell.windows": null, // 在終端中遇到一組消息時,將自動響應這組消息。如果消息足夠具體,可能有助于自動執(zhí)行常見響應。 // // 備注: // // - 使用 `"Terminate batch job (Y/N)": "\r"` 自動響應 Windows 上的終止批處理作業(yè)提示。 // - 消息包括轉(zhuǎn)義序列,因此可能無法使用帶樣式的文本進行回復。 // - 每秒只能進行一次回復。 // - 在回復中使用 `"\r"` 表示輸入鍵。 // - 要取消設置默認鍵,請將該值設置為 null。 // - 如果新的不適用,請重新啟動 VS Code。 "terminal.integrated.autoReplies": {}, // 觸發(fā)時在終端選項卡中顯示響鈴的毫秒數(shù)。 "terminal.integrated.bellDuration": 1000, // 一組命令 ID,其鍵綁定將不發(fā)送至 shell,而是始終由 VS Code 進行處理。這樣的話,通常由 shell 使用的鍵綁定的行為可如同焦點未在終端上時的行為一樣,例如按 “Ctrl+P” 來啟動“快速打開”。 // // // // 默認跳過多項命令。要替代默認值并轉(zhuǎn)而將相關命令的鍵綁定傳遞給 shell,請?zhí)砑右?“-” 字符為前綴的命令。例如,添加“-workbench.action.quickOpen” 可使 “Ctrl+P”到達 shell。 // // // // 在設置編輯器中查看時,下面的默認跳過命令列表會被截斷。要查看完整列表,請執(zhí)行 [打開默認設置 JSON](command:workbench.action.openRawDefaultSettings '打開默認設置(JSON)'),然后從下面的列表中搜索第一個命令。 // // // // 默認跳過的命令: // // - editor.action.toggleTabFocusMode // - notifications.hideList // - notifications.hideToasts // - workbench.action.debug.continue // - workbench.action.debug.pause // - workbench.action.debug.restart // - workbench.action.debug.run // - workbench.action.debug.start // - workbench.action.debug.stepInto // - workbench.action.debug.stepOut // - workbench.action.debug.stepOver // - workbench.action.debug.stop // - workbench.action.firstEditorInGroup // - workbench.action.focusActiveEditorGroup // - workbench.action.focusEighthEditorGroup // - workbench.action.focusFifthEditorGroup // - workbench.action.focusFirstEditorGroup // - workbench.action.focusFourthEditorGroup // - workbench.action.focusLastEditorGroup // - workbench.action.focusNextPart // - workbench.action.focusPreviousPart // - workbench.action.focusSecondEditorGroup // - workbench.action.focusSeventhEditorGroup // - workbench.action.focusSixthEditorGroup // - workbench.action.focusThirdEditorGroup // - workbench.action.lastEditorInGroup // - workbench.action.navigateDown // - workbench.action.navigateLeft // - workbench.action.navigateRight // - workbench.action.navigateUp // - workbench.action.nextEditor // - workbench.action.nextEditorInGroup // - workbench.action.nextPanelView // - workbench.action.nextSideBarView // - workbench.action.openNextRecentlyUsedEditor // - workbench.action.openNextRecentlyUsedEditorInGroup // - workbench.action.openPreviousRecentlyUsedEditor // - workbench.action.openPreviousRecentlyUsedEditorInGroup // - workbench.action.previousEditor // - workbench.action.previousEditorInGroup // - workbench.action.previousPanelView // - workbench.action.previousSideBarView // - workbench.action.quickOpen // - workbench.action.quickOpenLeastRecentlyUsedEditor // - workbench.action.quickOpenLeastRecentlyUsedEditorInGroup // - workbench.action.quickOpenPreviousEditor // - workbench.action.quickOpenPreviousRecentlyUsedEditor // - workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup // - workbench.action.quickOpenView // - workbench.action.showCommands // - workbench.action.tasks.build // - workbench.action.tasks.reRunTask // - workbench.action.tasks.restartTask // - workbench.action.tasks.runTask // - workbench.action.tasks.showLog // - workbench.action.tasks.showTasks // - workbench.action.tasks.terminate // - workbench.action.tasks.test // - workbench.action.terminal.clear // - workbench.action.terminal.clearSelection // - workbench.action.terminal.copySelection // - workbench.action.terminal.copySelectionAsHtml // - workbench.action.terminal.deleteToLineStart // - workbench.action.terminal.deleteWordLeft // - workbench.action.terminal.deleteWordRight // - workbench.action.terminal.findNext // - workbench.action.terminal.findPrevious // - workbench.action.terminal.focus // - workbench.action.terminal.focusAtIndex1 // - workbench.action.terminal.focusAtIndex2 // - workbench.action.terminal.focusAtIndex3 // - workbench.action.terminal.focusAtIndex4 // - workbench.action.terminal.focusAtIndex5 // - workbench.action.terminal.focusAtIndex6 // - workbench.action.terminal.focusAtIndex7 // - workbench.action.terminal.focusAtIndex8 // - workbench.action.terminal.focusAtIndex9 // - workbench.action.terminal.focusFind // - workbench.action.terminal.focusNext // - workbench.action.terminal.focusNextPane // - workbench.action.terminal.focusPrevious // - workbench.action.terminal.focusPreviousPane // - workbench.action.terminal.goToRecentDirectory // - workbench.action.terminal.hideFind // - workbench.action.terminal.kill // - workbench.action.terminal.killEditor // - workbench.action.terminal.moveToEditor // - workbench.action.terminal.moveToLineEnd // - workbench.action.terminal.moveToLineStart // - workbench.action.terminal.moveToTerminalPanel // - workbench.action.terminal.navigationModeExit // - workbench.action.terminal.navigationModeFocusNext // - workbench.action.terminal.navigationModeFocusPrevious // - workbench.action.terminal.new // - workbench.action.terminal.newInActiveWorkspace // - workbench.action.terminal.paste // - workbench.action.terminal.pasteSelection // - workbench.action.terminal.resizePaneDown // - workbench.action.terminal.resizePaneLeft // - workbench.action.terminal.resizePaneRight // - workbench.action.terminal.resizePaneUp // - workbench.action.terminal.runActiveFile // - workbench.action.terminal.runRecentCommand // - workbench.action.terminal.runSelectedText // - workbench.action.terminal.scrollDown // - workbench.action.terminal.scrollDownPage // - workbench.action.terminal.scrollToBottom // - workbench.action.terminal.scrollToNextCommand // - workbench.action.terminal.scrollToPreviousCommand // - workbench.action.terminal.scrollToTop // - workbench.action.terminal.scrollUp // - workbench.action.terminal.scrollUpPage // - workbench.action.terminal.selectAll // - workbench.action.terminal.selectToNextCommand // - workbench.action.terminal.selectToNextLine // - workbench.action.terminal.selectToPreviousCommand // - workbench.action.terminal.selectToPreviousLine // - workbench.action.terminal.sendSequence // - workbench.action.terminal.sizeToContentWidth // - workbench.action.terminal.split // - workbench.action.terminal.splitInActiveWorkspace // - workbench.action.terminal.toggleFindCaseSensitive // - workbench.action.terminal.toggleFindRegex // - workbench.action.terminal.toggleFindWholeWord // - workbench.action.terminal.toggleTerminal // - workbench.action.toggleFullScreen // - workbench.action.toggleMaximizedPanel // - workbench.action.togglePanel "terminal.integrated.commandsToSkipShell": [], // 如果存在活動終端會話,控制是否確認窗口關閉的時間。 // - never: 從不確認。 // - always: 始終確認是否存在終端。 // - hasChildProcesses: 確認是否存在具有子進程的終端。 "terminal.integrated.confirmOnExit": "never", // 控制是否在終端具有子進程時確認終止終端。當設置為編輯器時,如果編輯器區(qū)域中的終端具有子進程,則將標記為已更改。請注意,子進程檢測可能不適用于 Git Bash 等 shell,后者不會將其進程作為 shell 的子進程運行。 // - never: 從不確認。 // - editor: 確認終端是否在編輯器中。 // - panel: 確認終端是否在面板中。 // - always: 確認終端是在編輯器中還是在面板中。 "terminal.integrated.confirmOnKill": "editor", // 控制是否將在終端中選定的文本復制到剪貼板。 "terminal.integrated.copyOnSelection": false, // 控制終端光標是否閃爍。 "terminal.integrated.cursorBlinking": false, // 控制終端光標的樣式。 "terminal.integrated.cursorStyle": "block", // 控制在 "#terminal.integrated.cursorStyle#" 設置為 "line" 時光標的寬度。 "terminal.integrated.cursorWidth": 1, // 是否為塊元素和框繪圖字符繪制自定義字形,而不是使用字體,這通常會產(chǎn)生更好的連續(xù)線條呈現(xiàn)效果。請注意,這不適用于 DOM 呈現(xiàn)器 "terminal.integrated.customGlyphs": true, // 將在其中啟動終端的顯式起始路徑,它用作 shell 進程的當前工作目錄(cwd)。如果根目錄不是方便的 cwd,此路徑在工作區(qū)設置中可能十分有用。 "terminal.integrated.cwd": "", // 控制新建終端的顯示位置。 // - editor: 在編輯器中創(chuàng)建終端 // - view: 在終端視圖中創(chuàng)建終端 "terminal.integrated.defaultLocation": "view", // 在 Linux 上使用的默認配置文件。如果設置了 `terminal.integrated.shell.linux` 或 `terminal.integrated.shellArgs.linux`,則當前將忽略此設置。 "terminal.integrated.defaultProfile.linux": null, // 在 macOS 上使用的默認配置文件。如果設置了 `terminal.integrated.shell.osx` 或 `terminal.integrated.shellArgs.osx`,則當前將忽略此設置。 "terminal.integrated.defaultProfile.osx": null, // 在 Windows 上使用的默認配置文件。如果設置了 `terminal.integrated.shell.windows` 或 `terminal.integrated.shellArgs.windows`,則當前將忽略此設置。 // - null: 自動檢測默認值 // - PowerShell: $(terminal-powershell) PowerShell // - path: C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe // - Windows PowerShell: $(terminal-powershell) Windows PowerShell // - path: C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe // - Command Prompt: $(terminal-cmd) Command Prompt // - path: C:\WINDOWS\System32\cmd.exe // - args: [] // - JavaScript Debug Terminal: $($(debug)) JavaScript Debug Terminal // - extensionIdenfifier: ms-vscode.js-debug "terminal.integrated.defaultProfile.windows": null, // 控制是否檢測 "$LANG" 環(huán)境變量并將其設置為符合 UTF-8 的選項,因為 VS Code 的終端僅支持來自 shell 的 UTF-8 編碼數(shù)據(jù)。 // - auto: 如果現(xiàn)有變量不存在或不以 "'.UTF-8'" 結尾,則設置 "$LANG" 環(huán)境變量。 // - off: 請勿設置 "$LANG" 環(huán)境變量。 // - on: 始終設置 "$LANG" 環(huán)境變量。 "terminal.integrated.detectLocale": "auto", // 控制終端中的加粗文本是否始終使用 "bright" ANSI 顏色變量。 "terminal.integrated.drawBoldTextInBrightColors": true, // 控制是否啟用終端鈴聲,這在終端名稱旁邊顯示為視覺上的鈴鐺。 "terminal.integrated.enableBell": false, // 是否在終端中啟用文件鏈接。尤其是在處理網(wǎng)絡驅(qū)動器時,鏈接會變慢,因為每個文件鏈接都會根據(jù)文件系統(tǒng)進行驗證。更改此項將僅在新的終端中生效。 "terminal.integrated.enableFileLinks": true, // 將多行粘貼到終端時顯示警告對話框。在以下情況中,該對話框不顯示: // // - 已啟用帶括號的粘貼模式(shell 支持本機多行粘貼) // - 粘貼由 shell 的讀取一行數(shù)據(jù)處理(在 pwsh 的情況下) "terminal.integrated.enableMultiLinePasteWarning": true, // 跨窗口重新加載保持工作區(qū)的終端會話。 "terminal.integrated.enablePersistentSessions": true, // 具有環(huán)境變量的對象,這些變量將添加到 Linux 上的終端要使用的 VS Code 進程。如果設置為 "null",則刪除環(huán)境變量。 "terminal.integrated.env.linux": {}, // 具有環(huán)境變量的對象,這些變量將添加到 macOS 中的終端要使用的 VS Code 進程。如果設置為 "null",則刪除環(huán)境變量。 "terminal.integrated.env.osx": {}, // 具有環(huán)境變量的對象,這些變量將添加到將由 Windows 上的終端使用的 VS Code 進程。設置為 "null" 以刪除環(huán)境變量。 "terminal.integrated.env.windows": {}, // 是否在每個終端上顯示環(huán)境更改指示器,該指示器解釋了使是否已進行擴展或想要對終端環(huán)境進行更改。 // - off: 禁用指示器。 // - on: 啟用指示器。 // - warnonly: 僅當終端環(huán)境為“已過時”時,僅顯示警告指示器,而不是顯示指出終端環(huán)境已由擴展修改的信息指示器。 "terminal.integrated.environmentChangesIndicator": "warnonly", // 在擴展想要向終端的環(huán)境貢獻內(nèi)容但尚未與之交互時是否自動重啟終端。 "terminal.integrated.environmentChangesRelaunch": true, // 按 "Alt" 時的滾動速度加倍。 "terminal.integrated.fastScrollSensitivity": 5, // 控制終端的字體系列,它默認為 "#editor.fontFamily#" 的值。 "terminal.integrated.fontFamily": "", // 控制終端的字號(以像素為單位)。 "terminal.integrated.fontSize": 14, // 要在終端中用于非粗體文本的字體粗細。接受“正?!焙汀凹哟帧边@兩個關鍵字,或接受 1-1000 之間的數(shù)字。 "terminal.integrated.fontWeight": "normal", // 要在終端中用于粗體文本的字體粗細。接受“正?!焙汀凹哟帧边@兩個關鍵字,或接受 1-1000 之間的數(shù)字。 "terminal.integrated.fontWeightBold": "bold", // 控制終端是否將使用 GPU 來進行呈現(xiàn)。 // - auto: 讓 VS Code 檢測哪些呈現(xiàn)器將提供最佳體驗。 // - on: 在終端內(nèi)啟用 GPU 加速。 // - off: 在終端中禁用 GPU 加速。 // - canvas: 在終端中使用回退畫布呈現(xiàn)器。這使用 2d 上下文而不是 webgl,在某些系統(tǒng)上可能更好。 "terminal.integrated.gpuAcceleration": "auto", // 使用 `terminal.integrated.confirmOnKill` 設置時要忽略的一組流程名稱。 "terminal.integrated.ignoreProcessNames": [ "starship", "oh-my-posh", "bash", "zsh" ], // 控制終端的字母間距,這是一個整數(shù)值,表示要在字符之間增加的額外像素量。 "terminal.integrated.letterSpacing": 0, // 控制終端的行高,此數(shù)字乘以終端字號等于實際行高(以像素為單位)。 "terminal.integrated.lineHeight": 1, // 何時應啟用本地回響。此操作將替代 `terminal.integrated.localEchoLatencyThreshold` // - on: 始終啟用 // - off: 始終禁用 // - auto: 僅對遠程工作區(qū)啟用 "terminal.integrated.localEchoEnabled": "auto", // 當在終端標題中找到其中一個程序名稱時,將禁用本地回顯。 "terminal.integrated.localEchoExcludePrograms": [ "vim", "vi", "nano", "tmux" ], // 網(wǎng)絡延遲的長度(以毫秒為單位),其中本地編輯將在終端上回顯,無需等待服務器承認。如果為 '0',則本地回顯將始終開啟,如果為 '-1',則將禁用。 "terminal.integrated.localEchoLatencyThreshold": 30, // 本地回顯文本的終端樣式;字體樣式或 RGB 顏色。 "terminal.integrated.localEchoStyle": "dim", // 控制在 macOS 上使用 Option+單擊時是否強制選擇內(nèi)容。這將強制進行常規(guī)(行)選擇并禁止使用列選擇模式。這樣,可使用常規(guī)終端選擇進行復制粘貼,例如在 tmux 中啟用鼠標模式時。 "terminal.integrated.macOptionClickForcesSelection": false, // 控制是否將選項鍵視為 macOS 中的終端上的元鍵。 "terminal.integrated.macOptionIsMeta": false, // 設置每個單元格的前景色時,將改為嘗試符合指定的對比度比率。示例值: // // - 1: 不執(zhí)行任何操作,使用標準主題顏色。 // - 4.5: [符合 WCAG AA 標準(最低)](https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html)(默認)。 // - 7: [符合 WCAG AAA 標準(增強)](https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast7.html)。 // - 21: 黑底白字或白底黑字。 "terminal.integrated.minimumContrastRatio": 4.5, // 要在鼠標滾輪滾動事件的 "deltaY" 上使用的乘數(shù)。 "terminal.integrated.mouseWheelScrollSensitivity": 1, // 當必須關閉終端進程(例如當窗口或應用程序關閉時)時,這將確定何時應還原以前的終端會話內(nèi)容,以及在下次打開工作區(qū)時重新創(chuàng)建的進程。 // // 注意事項: // // - 進程當前工作目錄的還原取決于是否受 shell 支持。 // - 在關閉期間保留會話的時間有限,因此在使用高延遲遠程連接時可能會中止相應會話。 // - onExit: 在 Windows/Linux 上關閉最后窗口后或當觸發(fā) `workbench.action.quit` 命令(命令面板、鍵綁定、菜單)時,恢復流程。 // - onExitAndWindowClose: 在 Windows/Linux 上關閉最后窗口后或當觸發(fā) `workbench.action.quit` 命令(命令面板、鍵綁定、菜單)或關閉窗口時,恢復流程。 // - never: 永遠不要還原終端緩沖區(qū)或重新創(chuàng)建流程。 "terminal.integrated.persistentSessionReviveProcess": "onExit", // 通過終端下拉列表創(chuàng)建新終端時要顯示的 Linux 配置文件。請手動設置 `path` 屬性(通過可選的 `args` 進行)。 // // 將現(xiàn)有配置文件設置為 `null` 以從列表中隱藏配置文件,例如: `"bash": null`。 "terminal.integrated.profiles.linux": { "bash": { "path": "bash", "icon": "terminal-bash" }, "zsh": { "path": "zsh" }, "fish": { "path": "fish" }, "tmux": { "path": "tmux", "icon": "terminal-tmux" }, "pwsh": { "path": "pwsh", "icon": "terminal-powershell" } }, // 通過終端下拉列表創(chuàng)建新終端時要顯示的 macOS 配置文件。請手動設置 `path` 屬性(通過可選的 `args` 進行)。 // // 將現(xiàn)有配置文件設置為 `null` 以從列表中隱藏配置文件,例如: `"bash": null`。 "terminal.integrated.profiles.osx": { "bash": { "path": "bash", "args": [ "-l" ], "icon": "terminal-bash" }, "zsh": { "path": "zsh", "args": [ "-l" ] }, "fish": { "path": "fish", "args": [ "-l" ] }, "tmux": { "path": "tmux", "icon": "terminal-tmux" }, "pwsh": { "path": "pwsh", "icon": "terminal-powershell" } }, // 通過終端下拉列表創(chuàng)建新終端時要顯示的 Windows 配置文件。使用 `source` 屬性自動檢測 shell 的位置。或手動設置 `path` 屬性(通過可選的 `args` 進行)。 // // 將現(xiàn)有配置文件設置為 `null` 以從列表中隱藏配置文件,例如: `"Ubuntu-20.04 (WSL)": null`。 "terminal.integrated.profiles.windows": { "PowerShell": { "source": "PowerShell", "icon": "terminal-powershell" }, "Command Prompt": { "path": [ "${env:windir}\\Sysnative\\cmd.exe", "${env:windir}\\System32\\cmd.exe" ], "args": [], "icon": "terminal-cmd" }, "Git Bash": { "source": "Git Bash" } }, // 控制終端如何回應右鍵單擊操作。 // - default: 顯示上下文菜單。 // - copyPaste: 當有選定內(nèi)容時復制,否則粘貼。 // - paste: 右鍵單擊時粘貼。 // - selectWord: 選擇光標下方的字詞并顯示上下文菜單。 // - nothing: 不執(zhí)行任何操作并將事件傳遞到終端。 "terminal.integrated.rightClickBehavior": "copyPaste", // 控制終端在其緩沖區(qū)中保留的最大行數(shù)。 "terminal.integrated.scrollback": 1000, // 將大部分鍵綁定調(diào)度到終端而不是工作臺,重寫 "#terminal.integrated.commandsToSkipShell#",這可選擇性地用于進行微調(diào)。 "terminal.integrated.sendKeybindingsToShell": false, // 此項已棄用,配置默認 shell 的新推薦方法是在 `terminal.integrated.profiles.linux#` 中創(chuàng)建一個終端配置文件,并將其配置文件名稱設置為 `#terminal.integrated.defaultProfile.linux` 中的默認值。此操作當前將優(yōu)先于新的配置文件設置,但將來會發(fā)生更改。 // 終端在 Linux 上使用的 shell 的路徑。[閱讀關于配置 shell 的詳細信息](https://code.visualstudio.com/docs/editor/integrated-terminal#_terminal-profiles)。 "terminal.integrated.shell.linux": null, // 此項已棄用,配置默認 shell 的新推薦方法是在 `terminal.integrated.profiles.osx#` 中創(chuàng)建一個終端配置文件,并將其配置文件名稱設置為 `#terminal.integrated.defaultProfile.osx` 中的默認值。此操作當前將優(yōu)先于新的配置文件設置,但將來會發(fā)生更改。 // 終端在 macOS 上使用的 shell 的路徑。[閱讀關于配置 shell 的詳細信息](https://code.visualstudio.com/docs/editor/integrated-terminal#_terminal-profiles)。 "terminal.integrated.shell.osx": null, // 此項已棄用,配置默認 shell 的新推薦方法是在 `terminal.integrated.profiles.windows#` 中創(chuàng)建一個終端配置文件,并將其配置文件名稱設置為 `#terminal.integrated.defaultProfile.windows` 中的默認值。此操作當前將優(yōu)先于新的配置文件設置,但將來會發(fā)生更改。 // 終端在 Windows 上使用的 shell 的路徑。[閱讀關于配置 shell 的詳細信息](https://code.visualstudio.com/docs/editor/integrated-terminal#_terminal-profiles)。 "terminal.integrated.shell.windows": null, // 此項已棄用,配置默認 shell 的新推薦方法是在 `terminal.integrated.profiles.linux#` 中創(chuàng)建一個終端配置文件,并將其配置文件名稱設置為 `#terminal.integrated.defaultProfile.linux` 中的默認值。此操作當前將優(yōu)先于新的配置文件設置,但將來會發(fā)生更改。 // 在 Linux 終端上時要使用的命令行參數(shù)。[閱讀關于配置 shell 的詳細信息](https://code.visualstudio.com/docs/editor/integrated-terminal#_terminal-profiles)。 "terminal.integrated.shellArgs.linux": [], // 此項已棄用,配置默認 shell 的新推薦方法是在 `terminal.integrated.profiles.osx#` 中創(chuàng)建一個終端配置文件,并將其配置文件名稱設置為 `#terminal.integrated.defaultProfile.osx` 中的默認值。此操作當前將優(yōu)先于新的配置文件設置,但將來會發(fā)生更改。 // 在 macOS 終端上時要使用的命令行參數(shù)。[閱讀關于配置 shell 的詳細信息](https://code.visualstudio.com/docs/editor/integrated-terminal#_terminal-profiles)。 "terminal.integrated.shellArgs.osx": [ "-l" ], // 此項已棄用,配置默認 shell 的新推薦方法是在 `terminal.integrated.profiles.windows#` 中創(chuàng)建一個終端配置文件,并將其配置文件名稱設置為 `#terminal.integrated.defaultProfile.windows` 中的默認值。此操作當前將優(yōu)先于新的配置文件設置,但將來會發(fā)生更改。 // 在 Windows 終端上時要使用的命令行參數(shù)。[閱讀關于配置 shell 的詳細信息](https://code.visualstudio.com/docs/editor/integrated-terminal#_terminal-profiles)。 "terminal.integrated.shellArgs.windows": [], // 控制將用于已跳過/空命令的圖標。設置為 `''` 以隱藏圖標或禁用帶有 `terminal.integrated.shellIntegration.decorationsEnabled` 的修飾 "terminal.integrated.shellIntegration.decorationIcon": "circle-outline", // 控制將用于已啟用 shell 集成且具有關聯(lián)退出代碼的終端中的每個命令的圖標。設置為 `''` 以隱藏圖標或禁用帶有`terminal.integrated.shellIntegration.decorationsEnabled` 的修飾。 "terminal.integrated.shellIntegration.decorationIconError": "error-small", // 控制將用于已啟用 shell 集成且不具有關聯(lián)退出代碼的終端中的每個命令的圖標。設置為 `''` 以隱藏圖標或禁用帶有`terminal.integrated.shellIntegration.decorationsEnabled` 的修飾。 "terminal.integrated.shellIntegration.decorationIconSuccess": "primitive-dot", // 啟用 shell 集成后,為每個命令添加修飾。 "terminal.integrated.shellIntegration.decorationsEnabled": true, // 啟用實驗性 shell 集成功能,該功能將啟用某些功能,例如增強的命令跟蹤和當前工作目錄檢測。Shell 集成的工作原理是注入在初始化 shell 時運行的腳本,從而允許終端進一步了解終端內(nèi)發(fā)生的情況。如果已在終端配置文件中定義自定義參數(shù),則腳本注入可能不起作用。 // // 受支持的 shell: // // - Linux/macOS: bash、pwsh、zsh // - Windows: pwsh // // 此設置僅在創(chuàng)建終端時適用,需要重啟終端才能使該設置生效。 "terminal.integrated.shellIntegration.enabled": false, // 控制要保留在終端命令歷史記錄中的最近使用的命令數(shù)。設置為 0 可禁用終端命令歷史記錄。 "terminal.integrated.shellIntegration.history": 100, // 啟用該功能時,是否在終端中顯示 shell 集成已激活的歡迎消息。 "terminal.integrated.shellIntegration.showWelcome": true, // 控制在退出代碼為非零時是否顯示“終端進程已終止且顯示退出代碼”警報。 "terminal.integrated.showExitAlert": true, // 控制拆分終端開始時使用的工作目錄。 // - workspaceRoot: 新的拆分終端將使用工作區(qū)根作為工作目錄。在多根工作區(qū)中,提供了要使用根文件夾的選項。 // - initial: 新的拆分終端將使用父終端開始時使用的工作目錄。 // - inherited: 在 macOS 和 Linux 上,新的拆分終端將使用父終端的工作目錄。在 Windows 上,這與初始行為相同。 "terminal.integrated.splitCwd": "inherited", // 控制顯示在標題右側(cè)的終端說明。根據(jù)上下文替換變量: // - `${cwd}`: 終端的當前工作目錄 // - `${cwdFolder}`: 終端的當前工作目錄,當值與初始工作目錄不同時,顯示在多根工作區(qū)或單個根工作區(qū)中。在 Windows 上,僅當啟用 shell 集成時才會顯示此內(nèi)容。 // - `${workspaceFolder}`: 在其中啟動終端的工作區(qū) // - `${local}`: 指示遠程工作區(qū)中的本地終端 // - `${process}`: 終端流程的名稱 // - `${separator}`: 僅在由帶有值或靜態(tài)文本的變量括住時才顯示的條件分隔符(" - ")。 // - `${sequence}`: 進程提供給終端的名稱 // - `${task}`: 指示此終端與任務關聯(lián) "terminal.integrated.tabs.description": "${task}${separator}${local}${separator}${cwdFolder}", // 控制終端選項卡狀態(tài)是否支持動畫(例如正在進行的任務)。 "terminal.integrated.tabs.enableAnimation": true, // 控制終端選項卡是否以列表的形式顯示在終端的一側(cè)。如果禁用此功能,將改為顯示下拉列表。 "terminal.integrated.tabs.enabled": true, // 控制是在雙擊時將焦點放在某個選項卡上還是單擊。 // - singleClick: 雙擊終端選項卡時聚焦終端 // - doubleClick: 雙擊終端選項卡時聚焦終端 "terminal.integrated.tabs.focusMode": "doubleClick", // 控制在特定條件下是否將隱藏終端選項卡視圖。 // - never: 從不隱藏終端選項卡視圖 // - singleTerminal: 僅打開一個終端時隱藏終端選項卡視圖 // - singleGroup: 僅打開一個終端組時隱藏終端選項卡視圖 "terminal.integrated.tabs.hideCondition": "singleTerminal", // 控制終端選項卡的位置,該位置位于實際終端的左側(cè)或右側(cè)。 // - left: 在終端的左側(cè)顯示終端選項卡視圖 // - right: 在終端的右側(cè)顯示終端選項卡視圖 "terminal.integrated.tabs.location": "right", // `terminal.integrated.tabs.title` 和 `terminal.integrated.tabs.title` 使用的分隔符。 "terminal.integrated.tabs.separator": " - ", // 控制是否在“新建終端”按鈕旁邊顯示“終端拆分”和“終止”按鈕。 // - always: 始終顯示操作 // - singleTerminal: 當終端是唯一打開的終端時顯示操作 // - singleTerminalOrNarrow: 在終端是唯一打開的終端或選項卡視圖處于窄而無文本狀態(tài)時顯示活動終端 // - never: 從不顯示操作 "terminal.integrated.tabs.showActions": "singleTerminalOrNarrow", // 在視圖中顯示活動的終端信息,當選項卡中的標題不可見時,此功能尤其有用。 // - always: 始終顯示活動終端 // - singleTerminal: 當僅有一個終端打開時顯示活動終端 // - singleTerminalOrNarrow: 僅當終端已打開或選項卡視圖處于窄而無文本狀態(tài)時顯示活動終端 // - never: 從不顯示活動終端 "terminal.integrated.tabs.showActiveTerminal": "singleTerminalOrNarrow", // 控制終端標題。根據(jù)上下文替換變量: // - `${cwd}`: 終端的當前工作目錄 // - `${cwdFolder}`: 終端的當前工作目錄,當值與初始工作目錄不同時,顯示在多根工作區(qū)或單個根工作區(qū)中。在 Windows 上,僅當啟用 shell 集成時才會顯示此內(nèi)容。 // - `${workspaceFolder}`: 在其中啟動終端的工作區(qū) // - `${local}`: 指示遠程工作區(qū)中的本地終端 // - `${process}`: 終端流程的名稱 // - `${separator}`: 僅在由帶有值或靜態(tài)文本的變量括住時才顯示的條件分隔符(" - ")。 // - `${sequence}`: 進程提供給終端的名稱 // - `${task}`: 指示此終端與任務關聯(lián) "terminal.integrated.tabs.title": "${process}", // 控制在計算終端中字符的寬度時要使用的 unicode 版本。如果你遇到表情符號或其他寬字符,而這些寬字符占用的空格或退格量不正確或刪除的空間太多或太少,則你可能需要嘗試調(diào)整此設置。 // - 6: unicode 的版本 6,該版本較舊,在較舊的系統(tǒng)中效果更好。 // - 11: unicode 的版本 11,版本可在使用新式版本 unicode 的新式系統(tǒng)上提供更好的支持。 "terminal.integrated.unicodeVersion": "11", // 控制是否在終端下拉列表中顯示 WSL 發(fā)行版 "terminal.integrated.useWslProfiles": true, // 是否使用 ConPTY 進行 Windows 終端進程通信(需要 Windows 10 內(nèi)部版本號 18309+)。如果此設置為 false,將使用 Winpty。 "terminal.integrated.windowsEnableConpty": true, // 一個字符串,其中包含雙擊選擇 Word 功能而被視為單詞分隔符的所有字符。 "terminal.integrated.wordSeparators": " ()[]{}',\"`─‘'" }, { // 控制為所有任務提供程序擴展啟用"提供任務"。如果"任務: 運行任務"命令速度較慢,則禁用任務提供程序的自動檢測可能會提供幫助。單個擴展還可以提供禁用自動檢測的設置。 "task.autoDetect": "on", // 配置在運行任務時是否顯示問題匹配器提示。設置為"true"從不提示,或使用任務類型的字典僅關閉特定任務類型的提示。 "task.problemMatchers.neverPrompt": false, // 控制是否顯示在“運行任務”等任務快速選取中具有詳細信息的任務的詳細信息。 "task.quickOpen.detail": true, // 控制任務快速打開對話框中跟蹤的最近項目數(shù)。 "task.quickOpen.history": 30, // 使 Tasks: Run Task 命令使用速度較慢的“全部顯示”行為,而不是使用任務按提供程序進行分組的速度更快的雙層選取器。 "task.quickOpen.showAll": false, // 控制當只有一個任務要選取時是否跳過任務快速選取。 "task.quickOpen.skip": false, // 在運行任務前保存所有未保存的編輯器。 // - always: 運行前始終保存所有編輯器。 // - never: 運行前絕不保存編輯器。 // - prompt: 提示在運行前是否保存編輯器。 "task.saveBeforeRun": "always", // 配置當提供程序速度較慢時是否顯示警告 "task.slowProviderWarning": true }, { // 在終端中從資源管理器打開文件時,確定將啟動哪種類型的終端 // - integrated: 使用 VS Code 的集成終端。 // - external: 使用設定的外部終端。 "terminal.explorerKind": "integrated" }, { // 在打開文件時,控制是否在“問題”視圖中對其進行定位。 "problems.autoReveal": true, // 在文件和文件夾上顯示錯誤和警告。 "problems.decorations.enabled": true, // 啟用后,狀態(tài)欄中將顯示當前問題。 "problems.showCurrentInStatus": false, // 控制問題導航的順序。 // - severity: 導航按嚴重性排序的問題 // - position: 導航按位置排序的問題 "problems.sortOrder": "severity" }, { // 啟用/禁用導航路徑。 "breadcrumbs.enabled": true, // 控制是否及如何在“導航路徑”視圖中顯示文件路徑。 // - on: 在導航路徑視圖中顯示文件路徑。 // - off: 不在導航路徑視圖中顯示文件路徑。 // - last: 在導航路徑視圖中僅顯示文件路徑的最后一個元素。 "breadcrumbs.filePath": "on", // 使用圖標渲染面包屑導航項。 "breadcrumbs.icons": true, // 啟用后,痕跡導航欄將顯示“數(shù)組”符號。 "breadcrumbs.showArrays": true, // 啟用后,痕跡導航欄將顯示“布爾”符號。 "breadcrumbs.showBooleans": true, // 啟用后,痕跡導航欄顯示“類”符號。 "breadcrumbs.showClasses": true, // 啟用后,痕跡導航欄將顯示“常量”符號。 "breadcrumbs.showConstants": true, // 啟用后,痕跡符將顯示“構造函數(shù)”符號。 "breadcrumbs.showConstructors": true, // 啟用后,痕跡導航欄將顯示 "enumMember" 符號。 "breadcrumbs.showEnumMembers": true, // 啟用后,痕跡導航欄將顯示“枚舉”符號。 "breadcrumbs.showEnums": true, // 啟用后,痕跡導航欄將顯示“事件”符號。 "breadcrumbs.showEvents": true, // 啟用后,痕跡導航欄將顯示“字段”符號。 "breadcrumbs.showFields": true, // 啟用后,痕跡導航欄將顯示“文件”符號。 "breadcrumbs.showFiles": true, // 啟用后,痕跡導航欄將顯示“函數(shù)”符號。 "breadcrumbs.showFunctions": true, // 啟用后,痕跡導航欄將顯示“接口”符號。 "breadcrumbs.showInterfaces": true, // 啟用后,痕跡導航欄將顯示“鍵”符號。 "breadcrumbs.showKeys": true, // 啟用后,痕跡導航欄將顯示“方法”符號。 "breadcrumbs.showMethods": true, // 啟用后,痕跡導航欄將顯示“模塊”符號。 "breadcrumbs.showModules": true, // 啟用后,痕跡導航欄將顯示“命名空間”符號。 "breadcrumbs.showNamespaces": true, // 啟用后,痕跡導航欄將顯示 "null" 符號。 "breadcrumbs.showNull": true, // 啟用后,痕跡導航欄將顯示“數(shù)字”符號。 "breadcrumbs.showNumbers": true, // 啟用后,痕跡導航欄將顯示“對象”符號。 "breadcrumbs.showObjects": true, // 啟用后,痕跡導航欄將顯示“運算符”符號。 "breadcrumbs.showOperators": true, // 啟用后,痕跡導航欄將顯示“包”符號。 "breadcrumbs.showPackages": true, // 啟用后,痕跡導航欄將顯示“屬性”符號。 "breadcrumbs.showProperties": true, // 啟用后,痕跡導航欄將顯示“字符串”符號。 "breadcrumbs.showStrings": true, // 啟用后,痕跡導航欄將顯示“結構”符號。 "breadcrumbs.showStructs": true, // 啟用后,痕跡導航欄將顯示 "typeParameter" 符號。 "breadcrumbs.showTypeParameters": true, // 啟用后,痕跡導航欄將顯示“變量”符號。 "breadcrumbs.showVariables": true, // 控制是否及如何在“導航路徑”視圖中顯示符號。 // - on: 在“導航路徑”視圖中顯示所有符號。 // - off: 不在導航路徑視圖中顯示符號。 // - last: 在導航路徑視圖中僅顯示當前符號。 "breadcrumbs.symbolPath": "on", // 控制“導航路徑”大綱視圖中符號的排序方式。 // - position: 以文件位置順序顯示符號大綱。 // - name: 以字母順序顯示符號大綱。 // - type: 以符號類型順序顯示符號大綱。 "breadcrumbs.symbolSortOrder": "position" }, { // 如果此設置為 false,則無論新設置的值如何,都不會發(fā)送遙測數(shù)據(jù)。由于合并到 `telemetry.telemetryLevel` 設置,目前已棄用。 // 啟用要收集的崩潰報告。這有助于我們提高穩(wěn)定性。 // 此選項需重啟才可生效。 "telemetry.enableCrashReporter": true }, { // 顯示大綱元素的圖標。 "outline.icons": true, // 對錯誤和警告使用徽章。 "outline.problems.badges": true, // 對錯誤和警告添加顏色。 "outline.problems.colors": true, // 顯示大綱元素上的錯誤和警告。 "outline.problems.enabled": true, // 啟用后,大綱將顯示“數(shù)組”符號。 "outline.showArrays": true, // 啟用后,大綱將顯示“布爾”符號。 "outline.showBooleans": true, // 啟用后,大綱將顯示“類”符號。 "outline.showClasses": true, // 啟用后,大綱將顯示“常量”符號。 "outline.showConstants": true, // 啟用大綱時,大綱將顯示“構造函數(shù)”符號。 "outline.showConstructors": true, // 啟用后,大綱將顯示“枚舉成員”符號。 "outline.showEnumMembers": true, // 啟用后,大綱將顯示“枚舉”符號。 "outline.showEnums": true, // 啟用后,大綱將顯示“事件”符號。 "outline.showEvents": true, // 啟用時,大綱將顯示“字段”符號。 "outline.showFields": true, // 啟用后,大綱將顯示“文件”符號。 "outline.showFiles": true, // 啟用時,大綱將顯示“函數(shù)”符號。 "outline.showFunctions": true, // 啟用后,大綱將顯示“接口”符號。 "outline.showInterfaces": true, // 啟用后,大綱將顯示“鍵”符號。 "outline.showKeys": true, // 啟用后,大綱將顯示“方法”符號。 "outline.showMethods": true, // 啟用后,大綱將顯示“模塊”符號。 "outline.showModules": true, // 啟用后,大綱將顯示“命名空間”符號。 "outline.showNamespaces": true, // 啟用后,大綱將顯示 "null" 符號。 "outline.showNull": true, // 啟用后,大綱將顯示“數(shù)字”符號。 "outline.showNumbers": true, // 啟用后,大綱將顯示“對象”符號。 "outline.showObjects": true, // 啟用時,大綱顯示“運算符”符號。 "outline.showOperators": true, // 啟用后,大綱將顯示“包”符號。 "outline.showPackages": true, // 啟用后,大綱將顯示“屬性”符號。 "outline.showProperties": true, // 啟用后,大綱將顯示“字符串”符號。 "outline.showStrings": true, // 啟用后,大綱將顯示“結構”符號。 "outline.showStructs": true, // 啟用后,大綱將顯示 "typeParameter" 符號。 "outline.showTypeParameters": true, // 啟用后,大綱將顯示“變量”符號。 "outline.showVariables": true }, { // 應從時間線視圖中排除的時間線源數(shù)組。 "timeline.excludeSources": null, // 實驗性??刂圃跐L動到列表結尾時,時間線視圖是否將加載下一頁的項目。 "timeline.pageOnScroll": false, // 默認情況下以及在加載更多項目時在時間線視圖中顯示的項目數(shù)。如果設置為 "null" (默認值),則將根據(jù)時間線視圖的可見區(qū)域自動選擇一個頁面大小。 "timeline.pageSize": null }, { // 配置要為 css 語言替代的設置。 "[css]": { "editor.suggest.insertMode": "replace" }, // 配置要為 dockercompose 語言替代的設置。 "[dockercompose]": { "editor.insertSpaces": true, "editor.tabSize": 2, "editor.autoIndent": "advanced" }, // 配置要為 dockerfile 語言替代的設置。 "[dockerfile]": { "editor.quickSuggestions": { "strings": true } }, // 配置要為 git-commit 語言替代的設置。 "[git-commit]": { "editor.rulers": [ 72 ], "workbench.editor.restoreViewState": false }, // 配置要為 git-rebase 語言替代的設置。 "[git-rebase]": { "workbench.editor.restoreViewState": false }, // 配置要為 go 語言替代的設置。 "[go]": { "editor.insertSpaces": false }, // 配置要為 handlebars 語言替代的設置。 "[handlebars]": { "editor.suggest.insertMode": "replace" }, // 配置要為 haxe 語言替代的設置。 "[haxe]": { "editor.suggestSelection": "first" }, // 配置要為 html 語言替代的設置。 "[html]": { "editor.suggest.insertMode": "replace" }, // 配置要為 javascript 語言替代的設置。 "[javascript]": { "editor.maxTokenizationLineLength": 2500 }, // 配置要為 json 語言替代的設置。 "[json]": { "editor.quickSuggestions": { "strings": true }, "editor.suggest.insertMode": "replace" }, // 配置要為 jsonc 語言替代的設置。 "[jsonc]": { "editor.quickSuggestions": { "strings": true }, "editor.suggest.insertMode": "replace" }, // 配置要為 less 語言替代的設置。 "[less]": { "editor.suggest.insertMode": "replace" }, // 配置要為 makefile 語言替代的設置。 "[makefile]": { "editor.insertSpaces": false }, // 配置要為 markdown 語言替代的設置。 "[markdown]": { "editor.unicodeHighlight.ambiguousCharacters": false, "editor.unicodeHighlight.invisibleCharacters": false, "editor.wordWrap": "on", "editor.quickSuggestions": false }, // 配置要為 plaintext 語言替代的設置。 "[plaintext]": { "editor.unicodeHighlight.ambiguousCharacters": false, "editor.unicodeHighlight.invisibleCharacters": false }, // 配置要為 python 語言替代的設置。 "[python]": { "editor.wordBasedSuggestions": false }, // 配置要為 scss 語言替代的設置。 "[scss]": { "editor.suggest.insertMode": "replace" }, // 配置要為 search-result 語言替代的設置。 "[search-result]": { "editor.lineNumbers": "off" }, // 配置要為 shellscript 語言替代的設置。 "[shellscript]": { "files.eol": "\n" }, // 配置要為 yaml 語言替代的設置。 "[yaml]": { "editor.insertSpaces": true, "editor.tabSize": 2, "editor.autoIndent": "advanced" } }, { // Deprecated. Use the specific setting for each audio cue instead (`audioCues.*`). // "audioCues.enabled": null, // 當有效行具有斷點時播放聲音。 // - auto: 附加屏幕閱讀器時,啟用音頻提示。 // - on: 啟用音頻提示。 // - off: 禁用音頻提示。 "audioCues.lineHasBreakpoint": "auto", // 當有效行出現(xiàn)錯誤時播放聲音。 // - auto: 附加屏幕閱讀器時,啟用音頻提示。 // - on: 啟用音頻提示。 // - off: 禁用音頻提示。 "audioCues.lineHasError": "auto", // 當有效行具有可展開的折疊區(qū)域時播放聲音。 // - auto: 附加屏幕閱讀器時,啟用音頻提示。 // - on: 啟用音頻提示。 // - off: 禁用音頻提示。 "audioCues.lineHasFoldedArea": "auto", // 當有效行具有內(nèi)聯(lián)建議時播放聲音。 // - auto: 附加屏幕閱讀器時,啟用音頻提示。 // - on: 啟用音頻提示。 // - off: 禁用音頻提示。 "audioCues.lineHasInlineSuggestion": "auto", // 當有效行出現(xiàn)警告時播放聲音。 // - auto: 附加屏幕閱讀器時,啟用音頻提示。 // - on: 啟用音頻提示。 // - off: 禁用音頻提示。 "audioCues.lineHasWarning": "off", // 嘗試讀取包含無內(nèi)嵌提示的內(nèi)嵌提示的行時播放聲音。 // - auto: 附加屏幕閱讀器時,啟用音頻提示。 // - on: 啟用音頻提示。 // - off: 禁用音頻提示。 "audioCues.noInlayHints": "auto", // 當調(diào)試程序在斷點上停止時播放聲音。 // - auto: 附加屏幕閱讀器時,啟用音頻提示。 // - on: 啟用音頻提示。 // - off: 禁用音頻提示。 "audioCues.onDebugBreak": "auto", // 音頻提示音量百分比(0-100)。 "audioCues.volume": 70 }, { // 啟用后,將檢測到新的正在運行的進程,并自動轉(zhuǎn)發(fā)其偵聽的端口。禁用此設置將不會阻止轉(zhuǎn)發(fā)所有端口。即使禁用,擴展將仍然能夠?qū)е露丝诒晦D(zhuǎn)發(fā),并且打開某些 URL 仍將導致端口被轉(zhuǎn)發(fā)。 "remote.autoForwardPorts": true, // 設置當 "remote.autoForwardPorts" 為 true 時自動從其轉(zhuǎn)發(fā)端口的源。在 Windows 和 Mac 遠程設備上,"process" 選項不起作用,系統(tǒng)將使用 "output"。需要重新加載才能生效。 // - process: 通過監(jiān)視包含端口的已啟動進程發(fā)現(xiàn)端口時,將自動轉(zhuǎn)發(fā)該端口。 // - output: 通過讀取終端和調(diào)試輸出發(fā)現(xiàn)端口時,將自動轉(zhuǎn)發(fā)該端口。并非所有使用端口的進程都將打印到集成終端或調(diào)試控制臺,因此某些端口將丟失。根據(jù)輸出轉(zhuǎn)發(fā)的端口將不會被“取消轉(zhuǎn)發(fā)”,除非重載或用戶在“端口”視圖中關閉該端口。 "remote.autoForwardPortsSource": "process", // 啟用后,擴展將本地下載并安裝在遠程上。 "remote.downloadExtensionsLocally": false, // 覆蓋擴展的類型。"ui" 擴展在本地計算機上安裝和運行,而 "workspace" 擴展則在遠程計算機上運行。通過使用此設置重寫擴展的默認類型,可指定是否應在本地或遠程安裝和啟用該擴展。 "remote.extensionKind": { "pub.name": [ "ui" ] }, // 指定將用于端口轉(zhuǎn)發(fā)的本地主機名。 "remote.localPortHost": "localhost", // 對于未從 "remote.portsAttributes" 設置中獲得屬性的所有端口,設置其上應用的默認屬性。例如: // // ``` // { // "onAutoForward": "ignore" // } // ``` "remote.otherPortsAttributes": {}, // 設置在轉(zhuǎn)發(fā)特定端口號時應用的屬性。例如: // // ``` // "3000": { // "label": "Application" // }, // "40000-55000": { // "onAutoForward": "ignore" // }, // ".+\\/server.js": { // "onAutoForward": "openPreview" // } // ``` "remote.portsAttributes": { "443": { "protocol": "https" }, "8443": { "protocol": "https" } }, // 還原您在工作區(qū)中轉(zhuǎn)發(fā)的端口。 "remote.restoreForwardedPorts": true }, { // 不應展開 Emmet 縮寫的語言數(shù)組。 "emmet.excludeLanguages": [ "markdown" ], // 一組路徑,其中每個路徑都可以包含 Emmet syntaxProfiles 和/或代碼片段。 // 發(fā)生沖突時,后面路徑的配置文件/代碼段將重寫以前的路徑。 // 有關詳細信息和示例片段文件,請參見 https://code.visualstudio.com/docs/editor/emmet。 "emmet.extensionsPath": [], // 在默認不受支持的語言中啟用 Emmet 縮寫。在此語言和 Emmet 支持的語言之間添加映射。 // 例如: `{"vue-html": "html", "javascript": "javascriptreact"}` "emmet.includeLanguages": {}, // 當設置為 `false` 時,將分析整個文件并確定當前位置能否展開 Emmet 縮寫。當設置為 `true` 時,將僅在 CSS/SCSS/LESS 文件中分析當前位置周圍的內(nèi)容。 "emmet.optimizeStylesheetParsing": true, // 用于修改 Emmet 某些操作和解析程序的行為的首選項。 "emmet.preferences": {}, // 將可能的 Emmet 縮寫作為建議進行顯示。當在樣式表中或 emmet.showExpandedAbbreviation 設置為 `"never"` 時不適用。 "emmet.showAbbreviationSuggestions": true, // 以建議的形式顯示展開的 Emmet 縮寫。 // 選項 `"inMarkupAndStylesheetFilesOnly"` 適用于 html、haml、jade、slim、xml、xsl、css、scss、sass、less 和 stylus。 // 無論 markup/css 如何,選項 `"always"` 都適用于文件的各個部分。 "emmet.showExpandedAbbreviation": "always", // 若為 `true`,Emmet 建議將顯示為代碼片段??梢栽?`editor.snippetSuggestions` 設置中排列其順序。 "emmet.showSuggestionsAsSnippets": false, // 為指定的語法定義配置文件或使用帶有特定規(guī)則的配置文件。 "emmet.syntaxProfiles": {}, // 啟用后,按下 TAB 鍵,將展開 Emmet 縮寫。 "emmet.triggerExpansionOnTab": false, // 用于 Emmet 代碼片段的變量。 "emmet.variables": {} }, { // 控制是否啟用強制推送 (不論 force 還是 force-with-lease)。 "git.allowForcePush": false, // 控制是否允許沒有運行 pre-commit 和 commit-msg 掛鉤的提交。 "git.allowNoVerifyCommit": false, // 始終顯示“暫存的更改”資源組。 "git.alwaysShowStagedChangesResourceGroup": false, // 控制所有提交的 signoff 標志。 "git.alwaysSignOff": false, // 若設置為 true,則自動從當前 Git 存儲庫的默認遠程庫提取提交。若設置為“全部”,則從所有遠程庫進行提取。 "git.autofetch": false, // 在啟用“#git.autofetch#”情況下每次自動 git fetch 之間的間隔時間(以秒為單位)。 "git.autofetchPeriod": 180, // 是否啟用自動刷新。 "git.autorefresh": true, // 配置何時自動檢測存儲庫。 // - true: 掃描當前打開文件夾與當前打開文件所在文件夾的子文件夾。 // - false: 禁止自動掃描存儲庫。 // - subFolders: 掃描當前打開文件夾的子文件夾。 // - openEditors: 掃描當前打開文件的父文件夾。 "git.autoRepositoryDetection": true, // 在拉取前暫存所有更改,在成功拉取后還原這些更改。 "git.autoStash": false, // 控制分支的排列順序。 "git.branchSortOrder": "committerdate", // 用于驗證新分支名稱的正則表達式。 "git.branchValidationRegex": "", // 在新分支名稱中替換空白字符的字符。 "git.branchWhitespaceChar": "-", // 控制在運行“簽出到…”時列出的 git 參考類型。 // - local: 本地分支 // - tags: 標記 // - remote: 遠程分支 "git.checkoutType": [ "local", "remote", "tags" ], // 控制在儲藏、提交、放棄、暫存或取消暫存更改時,是否應自動關閉差異編輯器。 "git.closeDiffOnOperation": false, // GIT 命令列表 (例如: commit、push),這些命令的 `stdout` 將被記錄到 [git 輸出](command:git.showOutput)。如果 GIT 命令配置了客戶端掛鉤,那么客戶端掛鉤的 `stdout` 也將被記錄到 [git 輸出](command:git.showOutput)。 "git.commandsToLog": [], // 始終確認為 "Git: Commit Empty" 命令創(chuàng)建空提交。 "git.confirmEmptyCommits": true, // 控制在強制推送前是否進行確認。 "git.confirmForcePush": true, // 控制是否在提交前要求確認而不進行驗證。 "git.confirmNoVerifyCommit": true, // 同步 Git 存儲庫前請先進行確認。 "git.confirmSync": true, // 控制 Git 計數(shù)徽章。 // - all: 對所有更改計數(shù)。 // - tracked: 僅對跟蹤的更改計數(shù)。 // - off: 關閉計數(shù)器。 "git.countBadge": "all", // 控制 Git 是否在資源管理器和“打開編輯器”視圖中添加顏色和小標。 "git.decorations.enabled": true, // 控制是否自動檢測 Git 子模塊。 "git.detectSubmodules": true, // 控制可檢測到的 Git 子模塊的限制。 "git.detectSubmodulesLimit": 10, // 使用 GPG 或 x.509 啟用提交簽名。 "git.enableCommitSigning": false, // 是否啟用 Git。 "git.enabled": true, // 在沒有暫存的更改時提交所有更改。 "git.enableSmartCommit": false, // 控制Git Sync命令是否出現(xiàn)在狀態(tài)欄中。 "git.enableStatusBarSync": true, // 啟用后,在拉取時獲取所有分支。否則,僅獲取當前。 "git.fetchOnPull": false, // 遵循“運行同步命令時推送所有標記”。 "git.followTagsWhenSync": false, // This setting is now deprecated, please use `github.gitAuthentication` instead. // "git.githubAuthentication": null, // 要忽略的 Git 存儲庫列表。 "git.ignoredRepositories": [], // 忽略“舊版 Git”警告。 "git.ignoreLegacyWarning": false, // 忽略“存儲庫中存在大量更改”的警告。 "git.ignoreLimitWarning": false, // 忽略“缺失 Git”的警告。 "git.ignoreMissingGitWarning": false, // 忽略拉取時發(fā)出的分支似乎已變基的警告。 "git.ignoreRebaseWarning": false, // 忽略對文件樹中子模塊的修改。 "git.ignoreSubmodules": false, // 如果 Windows 上安裝了 Git 2.25 - 2.26,則忽略警告。 "git.ignoreWindowsGit27Warning": false, // 控制何時顯示提交消息輸入驗證。 "git.inputValidation": "warn", // 控制顯示提交消息長度警告的長度閾值。 "git.inputValidationLength": 72, // 控制顯示警告的提交消息主題長度閾值。請取消設置它以繼承 "config.inputValidationLength" 的值。 "git.inputValidationSubjectLength": 50, // 控制是否在克隆后自動打開存儲庫。 // - always: 始終在當前窗口中打開。 // - alwaysNewWindow: 始終在新窗口中打開。 // - whenNoFolderOpen: 只有在沒有打開任何文件夾時,才在當前窗口中打開。 // - prompt: 始終提示操作。 "git.openAfterClone": "prompt", // 控制單擊更改時是否應打開差異編輯器。否則將打開常規(guī)編輯器。 "git.openDiffOnClick": true, // 成功提交后運行 git 命令。 // - none: 提交后不要運行任何命令。 // - push: 成功提交后運行'Git Push'。 // - sync: 成功提交后運行'Git Sync'。 "git.postCommitCommand": "none", // 控制 Git 是否在提交之前檢查未保存的文件。 // - always: 檢查是否有任何未保存的文件。 // - staged: 只檢查未保存的已暫存文件。 // - never: 禁用此檢查。 "git.promptToSaveFilesBeforeCommit": "always", // 控制 Git 是否在儲藏更改之前檢查未保存的文件。 // - always: 檢查是否有任何未保存的文件。 // - staged: 只檢查未保存的已暫存文件。 // - never: 禁用此檢查。 "git.promptToSaveFilesBeforeStash": "always", // 提取時修剪。 "git.pruneOnFetch": false, // 拉取時提取所有標簽。 "git.pullTags": true, // 在運行“同步”命令時,強制 Git 使用“變基”。 "git.rebaseWhenSync": false, // 當 `git.autoRepositoryDetection` 設置為 “true” 或 “subFolders” 時掃描 Git 存儲庫時忽略的文件夾列表。 "git.repositoryScanIgnoredFolders": [ "node_modules" ], // 在將 `git.autoRepositoryDetection` 設置為 `true` 或 `subFolders` 時,控制掃描工作區(qū)文件夾以查找 Git 存儲庫時使用的深度。如果不進行限制,可以設置為 `-1`。 "git.repositoryScanMaxDepth": 1, // 控制在是要求進行顯式 Git 用戶配置,還是允許 Git 在缺少配置時進行猜測。 "git.requireGitUserConfig": true, // 在其中搜索 Git 存儲庫的路徑的列表。 "git.scanRepositories": [], // 控制是否在 Git 源控制面板中顯示提交輸入。 "git.showCommitInput": true, // 控制是否在 Git 更改視圖中顯示內(nèi)聯(lián)“打開文件”操作。 "git.showInlineOpenFileAction": true, // 控制 Git 操作是否顯示進度提示。 "git.showProgress": true, // 控制在推送成功時是否顯示通知。 "git.showPushSuccessNotification": false, // 控制是否顯示要同步或發(fā)布的操作按鈕(如果存在未發(fā)布的提交)。 // - always: 如果存在未發(fā)布的提交,則始終顯示操作按鈕。 // - whenEmpty: 只有當無其他更改且存在未發(fā)布的提交時,才顯示操作按鈕。 // - never: 從不顯示操作按鈕。 "git.showUnpublishedCommitsButton": "whenEmpty", // 控制哪些更改由Smart Commit自動暫存。 // - all: 自動暫存所有更改。 // - tracked: 僅自動暫存跟蹤的更改。 "git.smartCommitChanges": "all", // 控制如何限制可從 Git 狀態(tài)命令分析的更改數(shù)??梢栽O置為 0 表示無限制。 "git.statusLimit": 10000, // 建議啟用智能提交(在無暫存更改時提交所有更改)。 "git.suggestSmartCommit": true, // 控制在運行同步操作時是否出現(xiàn)通知,允許用戶取消操作。 "git.supportCancellation": false, // 控制是否使 VS Code 成為集成終端中產(chǎn)生的 git 進程的身份驗證處理程序。請注意: 需要重啟終端才能選擇此設置中的更改。 "git.terminalAuthentication": true, // 控制在日程表視圖中項目使用的日期。 // - committed: 使用提交日期 // - authored: 使用創(chuàng)作日期 "git.timeline.date": "committed", // 控制是否在日程表視圖中顯示提交作者。 "git.timeline.showAuthor": true, // 控制是否在時間線視圖中顯示未提交的更改。 "git.timeline.showUncommitted": false, // 控制未跟蹤的更改的行為。 // - mixed: 所有更改,無論是跟蹤的還是未跟蹤的,都會一起出現(xiàn)并表現(xiàn)出相同的行為。 // - separate: 未跟蹤的更改單獨顯示在“源代碼管理”視圖中。它們也被排除在幾個操作之外。 // - hidden: 未跟蹤的更改被隱藏,并從多個操作中排除。 "git.untrackedChanges": "mixed", // 控制是否將提交輸入框中的消息用作默認儲藏消息。 "git.useCommitInputAsStashMessage": false, // 控制是否使用更安全的 force-with-lease 進行強制推送。 "git.useForcePushWithLease": true, // 控制是否應覆蓋 GIT_ASKPASS 以使用集成版本。 "git.useIntegratedAskPass": true }, { // 控制是否在 VS Code 中為 git 命令啟用自動 GitHub 身份驗證。 "github.gitAuthentication": true, // 控制用于克隆 GitHub 存儲庫的協(xié)議 "github.gitProtocol": "https" }, { // URI of your GitHub Enterprise Instance "github-enterprise.uri": "" }, { // 在內(nèi)置 Markdown 預覽中啟用/禁用呈現(xiàn)數(shù)學。 "markdown.math.enabled": true }, { // 是否在解決合并沖突后自動轉(zhuǎn)到下一個合并沖突。 "merge-conflict.autoNavigateNextConflict.enabled": false, // 為編輯器中的合并沖突區(qū)域創(chuàng)建 CodeLens。 "merge-conflict.codeLens.enabled": true, // 為編輯器中的合并沖突區(qū)域創(chuàng)建提示小標。 "merge-conflict.decorators.enabled": true, // 控件在比較合并沖突中的更改時應在何處打開差異視圖。 // - Current: 在當前的編輯器組中打開差異視圖。 // - Beside: 在當前編輯器組旁邊打開差異視圖。 // - Below: 在當前編輯器組下方打開差異視圖。 "merge-conflict.diffViewPosition": "Current" }, { // Configures which processes to automatically attach and debug when `debug.node.autoAttach` is on. A Node process launched with the `--inspect` flag will always be attached to, regardless of this setting. // - always: Auto attach to every Node.js process launched in the terminal. // - smart: Auto attach when running scripts that aren't in a node_modules folder. // - onlyWithFlag: Only auto attach when the `--inspect` is given. // - disabled: Auto attach is disabled and not shown in status bar. "debug.javascript.autoAttachFilter": "disabled", // Configures glob patterns for determining when to attach in "smart" `debug.javascript.autoAttachFilter` mode. `$KNOWN_TOOLS$` is replaced with a list of names of common test and code runners. [Read more on the VS Code docs](https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_auto-attach-smart-patterns). "debug.javascript.autoAttachSmartPattern": [ "${workspaceFolder}/**", "!**/node_modules/**", "**/$KNOWN_TOOLS$/**" ], // When debugging a remote web app, configures whether to automatically tunnel the remote server to your local machine. "debug.javascript.automaticallyTunnelRemoteServer": true, // Whether to stop when conditional breakpoints throw an error. "debug.javascript.breakOnConditionalError": false, // Where a "Run" and "Debug" code lens should be shown in your npm scripts. It may be on "all", scripts, on "top" of the script section, or "never". "debug.javascript.codelens.npmScripts": "top", // Options used when debugging open links clicked from inside the JavaScript Debug Terminal. Can be set to "off" to disable this behavior, or "always" to enable debugging in all terminals. "debug.javascript.debugByLinkOptions": "on", // The default `runtimeExecutable` used for launch configurations, if unspecified. This can be used to config custom paths to Node.js or browser installations. "debug.javascript.defaultRuntimeExecutable": { "pwa-node": "node" }, // Default options used when debugging a process through the `Debug: Attach to Node.js Process` command "debug.javascript.pickAndAttachOptions": {}, // Request options to use when loading resources, such as source maps, in the debugger. You may need to configure this if your sourcemaps require authentication or use a self-signed certificate, for instance. Options are used to create a request using the [`got`](https://github.com/sindresorhus/got) library. // // A common case to disable certificate verification can be done by passing `{ "https": { "rejectUnauthorized": false } }`. "debug.javascript.resourceRequestOptions": {}, // Whether to suggest pretty printing JavaScript code that looks minified when you step into it. "debug.javascript.suggestPrettyPrinting": true, // Default launch options for the JavaScript debug terminal and npm scripts. "debug.javascript.terminalOptions": {}, // Configures whether sourcemapped file where the original file can't be read will automatically be unmapped. If this is false (default), a prompt is shown. "debug.javascript.unmapMissingSources": false }, { // Controls whether 'Peek References' or 'Find References' is invoked when selecting code lens references // - peek: Show references in peek editor. // - view: Show references in separate view. "references.preferredLocation": "peek" }, { // 控制是否自動檢測 npm 腳本。 "npm.autoDetect": "on", // 從資源管理器上下文菜單中啟用運行文件夾中包含的 NPM 腳本。 "npm.enableRunFromFolder": false, // The NPM Script Explorer is now available in 'Views' menu in the Explorer in all folders. // 在沒有頂級 "package.json" 文件時,為 npm 腳本啟用資源管理器視圖。 "npm.enableScriptExplorer": false, // 配置應從自動腳本檢測中排除的文件夾的 glob 模式。 "npm.exclude": "", // 從 https://registry.npmjs.org 和 https://registry.bower.io 獲取數(shù)據(jù),以提供自動補全和 npm 依賴項上的懸停功能信息。 "npm.fetchOnlinePackageInfo": true, // 用于運行腳本的程序包管理器。 // - auto: 根據(jù)鎖定文件和已安裝的包管理器,自動檢測用于運行腳本的包管理器。 // - npm: 使用 npm 作為運行腳本的包管理器。 // - yarn: 使用 yarn 作為運行腳本的包管理器。 // - pnpm: 使用 pnpm 作為運行腳本的包管理器。 "npm.packageManager": "auto", // 使用 `--silent` 選項運行 npm 命令。 "npm.runSilent": false, // npm 腳本資源管理器中使用的默認單擊操作: "打開"或"運行",默認值為"打開"。 "npm.scriptExplorerAction": "open", // 正則表達式的數(shù)組,指示應從 NPM 腳本視圖中排除哪些腳本。 "npm.scriptExplorerExclude": [] }, { // 啟用/禁用在簡單瀏覽器中聚焦時顯示的浮動指示器。 "simpleBrowser.focusLockIndicator.enabled": true }, { // Whether to clear previous output before each run. "code-runner.clearPreviousOutput": false, // Set the custom command to run. "code-runner.customCommand": "echo Hello", // Set the working directory. "code-runner.cwd": "", // Set the default language to run. "code-runner.defaultLanguage": "", // Whether to enable AppInsights to track user telemetry data. "code-runner.enableAppInsights": true, // Set the executor of each language. "code-runner.executorMap": { "javascript": "node", "java": "cd $dir && javac $fileName && java $fileNameWithoutExt", "c": "cd $dir && gcc $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt", "cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt", "objective-c": "cd $dir && gcc -framework Cocoa $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt", "php": "php", "python": "python -u", "perl": "perl", "perl6": "perl6", "ruby": "ruby", "go": "go run", "lua": "lua", "groovy": "groovy", "powershell": "powershell -ExecutionPolicy ByPass -File", "bat": "cmd /c", "shellscript": "bash", "fsharp": "fsi", "csharp": "scriptcs", "vbscript": "cscript //Nologo", "typescript": "ts-node", "coffeescript": "coffee", "scala": "scala", "swift": "swift", "julia": "julia", "crystal": "crystal", "ocaml": "ocaml", "r": "Rscript", "applescript": "osascript", "clojure": "lein exec", "haxe": "haxe --cwd $dirWithoutTrailingSlash --run $fileNameWithoutExt", "rust": "cd $dir && rustc $fileName && $dir$fileNameWithoutExt", "racket": "racket", "scheme": "csi -script", "ahk": "autohotkey", "autoit": "autoit3", "dart": "dart", "pascal": "cd $dir && fpc $fileName && $dir$fileNameWithoutExt", "d": "cd $dir && dmd $fileName && $dir$fileNameWithoutExt", "haskell": "runhaskell", "nim": "nim compile --verbosity:0 --hints:off --run", "lisp": "sbcl --script", "kit": "kitc --run", "v": "v run", "sass": "sass --style expanded", "scss": "scss --style expanded", "less": "cd $dir && lessc $fileName $fileNameWithoutExt.css", "FortranFreeForm": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt", "fortran-modern": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt", "fortran_fixed-form": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt", "fortran": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt", "sml": "cd $dir && sml $fileName" }, // Set the executor of each file extension. "code-runner.executorMapByFileExtension": { ".vb": "cd $dir && vbc /nologo $fileName && $dir$fileNameWithoutExt", ".vbs": "cscript //Nologo", ".scala": "scala", ".jl": "julia", ".cr": "crystal", ".ml": "ocaml", ".exs": "elixir", ".hx": "haxe --cwd $dirWithoutTrailingSlash --run $fileNameWithoutExt", ".rkt": "racket", ".scm": "csi -script", ".ahk": "autohotkey", ".au3": "autoit3", ".kt": "cd $dir && kotlinc $fileName -include-runtime -d $fileNameWithoutExt.jar && java -jar $fileNameWithoutExt.jar", ".kts": "kotlinc -script", ".dart": "dart", ".pas": "cd $dir && fpc $fileName && $dir$fileNameWithoutExt", ".pp": "cd $dir && fpc $fileName && $dir$fileNameWithoutExt", ".d": "cd $dir && dmd $fileName && $dir$fileNameWithoutExt", ".hs": "runhaskell", ".nim": "nim compile --verbosity:0 --hints:off --run", ".csproj": "dotnet run --project", ".fsproj": "dotnet run --project", ".lisp": "sbcl --script", ".kit": "kitc --run", ".v": "v run", ".vsh": "v run", ".sass": "sass --style expanded", ".cu": "cd $dir && nvcc $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt", ".ring": "ring", ".sml": "cd $dir && sml $fileName" }, // Set the executor by glob. "code-runner.executorMapByGlob": { "pom.xml": "cd $dir && mvn clean package" }, // Whether to use the directory of the file to be executed as the working directory. "code-runner.fileDirectoryAsCwd": false, // Whether to ignore selection to always run entire file. "code-runner.ignoreSelection": false, // Set the mapping of languageId to file extension. "code-runner.languageIdToFileExtensionMap": { "bat": ".bat", "powershell": ".ps1", "typescript": ".ts" }, // Whether to preserve focus on code editor after code run is triggered. "code-runner.preserveFocus": true, // Whether to respect Shebang to run code. "code-runner.respectShebang": true, // Whether to run code in Integrated Terminal. "code-runner.runInTerminal": false, // Whether to save all files before running. "code-runner.saveAllFilesBeforeRun": false, // Whether to save the current file before running. "code-runner.saveFileBeforeRun": false, // Whether to show extra execution message like [Running] ... and [Done] ... "code-runner.showExecutionMessage": true, // Whether to show 'Run Code' command in editor context menu. "code-runner.showRunCommandInEditorContextMenu": true, // Whether to show 'Run Code' command in explorer context menu. "code-runner.showRunCommandInExplorerContextMenu": true, // Whether to show 'Run Code' icon in editor title menu. "code-runner.showRunIconInEditorTitleMenu": true, // Whether to show 'Stop code run' icon in the editor title menu when code is running. "code-runner.showStopIconInEditorTitleMenu": true, // Temporary file name used in running selected code snippet. When it is set as empty, the file name will be random. "code-runner.temporaryFileName": "tempCodeRunnerFile", // For Windows system, replaces the Windows style drive letter in the command with a Unix style root when using a custom shell as the terminal, like Bash or Cgywin. Example: Setting this to '/mnt/' will replace 'C:\path' with '/mnt/c/path' "code-runner.terminalRoot": "" }, { // the trigger effect on the language "shellformat.effectLanguages": [ "shellscript", "dockerfile", "dotenv", "hosts", "jvmoptions", "ignore", "gitignore", "properties", "spring-boot-properties", "azcli", "bats" ], // shfmt -h to see detail usage , example: -p -bn -ci "shellformat.flag": null, // the shfmt fullpath example[ mac,linux ] /usr/local/bin/shfmt [windows] C:/bin/shfmt.exe download fron https://github.com/mvdan/sh/releases "shellformat.path": null, // Use EditorConfig for shfmt configuration "shellformat.useEditorConfig": false }, { // List of paths to libraries and the like that need to be imported by auto complete engine. E.g. when using Google App SDK, the paths are not in system path, hence need to be added into this list. "python.autoComplete.extraPaths": [], // Path to default Python to use when extension loads up for the first time, no longer used once an interpreter is selected for the workspace. See https://aka.ms/AAfekmf to understand when this is used. "python.defaultInterpreterPath": "python", // Absolute path to a file containing environment variable definitions. "python.envFile": "${workspaceFolder}/.env", // Arguments passed in. Each argument is a separate item in the array. "python.formatting.autopep8Args": [], // Path to autopep8, you can use a custom version of autopep8 by modifying this setting to include the full path. "python.formatting.autopep8Path": "autopep8", // Arguments passed in. Each argument is a separate item in the array. "python.formatting.blackArgs": [], // Path to Black, you can use a custom version of Black by modifying this setting to include the full path. "python.formatting.blackPath": "black", // Provider for formatting. Possible options include 'autopep8', 'black', and 'yapf'. "python.formatting.provider": "autopep8", // Arguments passed in. Each argument is a separate item in the array. "python.formatting.yapfArgs": [], // Path to yapf, you can use a custom version of yapf by modifying this setting to include the full path. "python.formatting.yapfPath": "yapf", // Whether to install Python modules globally when not using an environment. "python.globalModuleInstallation": false, // Defines type of the language server. // - Default: Automatically select a language server: Pylance if installed and available, otherwise fallback to Jedi. // - Jedi: Use Jedi behind the Language Server Protocol (LSP) as a language server. // - Pylance: Use Pylance as a language server. // - None: Disable language server capabilities. "python.languageServer": "Default", // Arguments passed in. Each argument is a separate item in the array. "python.linting.banditArgs": [], // Whether to lint Python files using bandit. "python.linting.banditEnabled": false, // Path to bandit, you can use a custom version of bandit by modifying this setting to include the full path. "python.linting.banditPath": "bandit", // Optional working directory for linters. "python.linting.cwd": null, // Whether to lint Python files. "python.linting.enabled": true, // Arguments passed in. Each argument is a separate item in the array. "python.linting.flake8Args": [], // Severity of Flake8 message type 'E'. "python.linting.flake8CategorySeverity.E": "Error", // Severity of Flake8 message type 'F'. "python.linting.flake8CategorySeverity.F": "Error", // Severity of Flake8 message type 'W'. "python.linting.flake8CategorySeverity.W": "Warning", // Whether to lint Python files using flake8 "python.linting.flake8Enabled": false, // Path to flake8, you can use a custom version of flake8 by modifying this setting to include the full path. "python.linting.flake8Path": "flake8", // Patterns used to exclude files or folders from being linted. "python.linting.ignorePatterns": [ "**/site-packages/**/*.py", ".vscode/*.py" ], // Whether to lint Python files when saved. "python.linting.lintOnSave": true, // Controls the maximum number of problems produced by the server. "python.linting.maxNumberOfProblems": 100, // Arguments passed in. Each argument is a separate item in the array. "python.linting.mypyArgs": [ "--follow-imports=silent", "--ignore-missing-imports", "--show-column-numbers", "--no-pretty" ], // Severity of Mypy message type 'Error'. "python.linting.mypyCategorySeverity.error": "Error", // Severity of Mypy message type 'Note'. "python.linting.mypyCategorySeverity.note": "Information", // Whether to lint Python files using mypy. "python.linting.mypyEnabled": false, // Path to mypy, you can use a custom version of mypy by modifying this setting to include the full path. "python.linting.mypyPath": "mypy", // Arguments passed in. Each argument is a separate item in the array. "python.linting.prospectorArgs": [], // Whether to lint Python files using prospector. "python.linting.prospectorEnabled": false, // Path to Prospector, you can use a custom version of prospector by modifying this setting to include the full path. "python.linting.prospectorPath": "prospector", // Arguments passed in. Each argument is a separate item in the array. "python.linting.pycodestyleArgs": [], // Severity of pycodestyle message type 'E'. "python.linting.pycodestyleCategorySeverity.E": "Error", // Severity of pycodestyle message type 'W'. "python.linting.pycodestyleCategorySeverity.W": "Warning", // Whether to lint Python files using pycodestyle "python.linting.pycodestyleEnabled": false, // Path to pycodestyle, you can use a custom version of pycodestyle by modifying this setting to include the full path. "python.linting.pycodestylePath": "pycodestyle", // Arguments passed in. Each argument is a separate item in the array. "python.linting.pydocstyleArgs": [], // Whether to lint Python files using pydocstyle "python.linting.pydocstyleEnabled": false, // Path to pydocstyle, you can use a custom version of pydocstyle by modifying this setting to include the full path. "python.linting.pydocstylePath": "pydocstyle", // Arguments passed in. Each argument is a separate item in the array. "python.linting.pylamaArgs": [], // Whether to lint Python files using pylama. "python.linting.pylamaEnabled": false, // Path to pylama, you can use a custom version of pylama by modifying this setting to include the full path. "python.linting.pylamaPath": "pylama", // Arguments passed in. Each argument is a separate item in the array. "python.linting.pylintArgs": [], // Severity of Pylint message type 'Convention/C'. "python.linting.pylintCategorySeverity.convention": "Information", // Severity of Pylint message type 'Error/E'. "python.linting.pylintCategorySeverity.error": "Error", // Severity of Pylint message type 'Fatal/F'. "python.linting.pylintCategorySeverity.fatal": "Error", // Severity of Pylint message type 'Refactor/R'. "python.linting.pylintCategorySeverity.refactor": "Hint", // Severity of Pylint message type 'Warning/W'. "python.linting.pylintCategorySeverity.warning": "Warning", // Whether to lint Python files using pylint. "python.linting.pylintEnabled": false, // Path to Pylint, you can use a custom version of pylint by modifying this setting to include the full path. "python.linting.pylintPath": "pylint", // Path to the pipenv executable to use for activation. "python.pipenvPath": "pipenv", // Path to the poetry executable. "python.poetryPath": "poetry", // Arguments passed in. Each argument is a separate item in the array. "python.sortImports.args": [], // Path to isort script, default using inner version "python.sortImports.path": "", // Activate Python Environment in the current Terminal on load of the Extension. "python.terminal.activateEnvInCurrentTerminal": false, // Activate Python Environment in Terminal created using the Extension. "python.terminal.activateEnvironment": true, // When executing a file in the terminal, whether to use execute in the file's directory, instead of the current open folder. "python.terminal.executeInFileDir": false, // When launching a python process, whether to focus on the terminal. "python.terminal.focusAfterLaunch": false, // Python launch arguments to use when executing a file in the terminal. "python.terminal.launchArgs": [], // Enable auto run test discovery when saving a test file. "python.testing.autoTestDiscoverOnSaveEnabled": true, // Optional working directory for tests. "python.testing.cwd": null, // Port number used for debugging of tests. "python.testing.debugPort": 3000, // Prompt to configure a test framework if potential tests directories are discovered. "python.testing.promptToConfigure": true, // Arguments passed in. Each argument is a separate item in the array. "python.testing.pytestArgs": [], // Enable testing using pytest. "python.testing.pytestEnabled": false, // Path to pytest (pytest), you can use a custom version of pytest by modifying this setting to include the full path. "python.testing.pytestPath": "pytest", // Arguments passed in. Each argument is a separate item in the array. "python.testing.unittestArgs": [ "-v", "-s", ".", "-p", "*test*.py" ], // Enable testing using unittest. "python.testing.unittestEnabled": false }, { // Offer auto-import completions. "python.analysis.autoImportCompletions": true, // Automatically add common search paths like 'src'. "python.analysis.autoSearchPaths": true, // Add parentheses to function completions. "python.analysis.completeFunctionParens": false, // Analysis mode for diagnostics. // - openFilesOnly: Analyzes and reports errors on only open files. // - workspace: Analyzes and reports errors on all files in the workspace. "python.analysis.diagnosticMode": "openFilesOnly", // Allows a user to override the severity levels for individual diagnostics. "python.analysis.diagnosticSeverityOverrides": {}, // Additional import search resolution paths "python.analysis.extraPaths": [], // Index installed third party libraries and user files for language features such as auto-import, add import, workspace symbols and etc. "python.analysis.indexing": null, // Enable/disable inlay hints for function return types: // ```python // def foo(x:int) ' -> int ': // return x // ``` // "python.analysis.inlayHints.functionReturnTypes": false, // Enable/disable inlay hints for variable types: // ```python // foo ' :list[str] ' = ["a"] // // ``` // "python.analysis.inlayHints.variableTypes": false, // Specifies the level of logging for the Output panel "python.analysis.logLevel": "Information", // Path to directory containing custom type stub files. "python.analysis.stubPath": "typings", // Defines the default rule set for type checking. // - off: Surfaces diagnostics for invalid syntax, unresolved imports, undefined variables. // - basic: All "off" rules + basic type checking rules. // - strict: All "off" rules + all type checking rules. "python.analysis.typeCheckingMode": "off", // Paths to look for typeshed modules. "python.analysis.typeshedPaths": [], // Use library implementations to extract type information when type stub is not present. "python.analysis.useLibraryCodeForTypes": true }, { // After running a cell, add a 'Goto' code lens on the cell. Note, disabling all code lenses disables this code lens as well. "jupyter.addGotoCodeLenses": true, // This setting is deprecated and will be removed in the next release. // Allows a user to import a jupyter notebook into a python file anytime one is opened. "jupyter.allowImportFromNotebook": true, // This setting is deprecated and will be removed in the next release. // Allow the inputting of python code directly into the Interactive window "jupyter.allowInput": true, // This setting is deprecated as Live Share support for the interactive window no longer exists in the Jupyter extension. // Allow the Interactive window to be shared during a Live Share session "jupyter.allowLiveShare": true, // Allow for connecting the Interactive window to a https Jupyter server that does not have valid certificates. This can be a security risk, so only use for known and trusted servers. "jupyter.allowUnauthorizedRemoteConnection": false, // Automatically scroll the interactive window to show the output of the last statement executed. If false, the interactive window will only automatically scroll if the bottom of the prior cell is visible. "jupyter.alwaysScrollOnNewCell": false, // This setting is deprecated and will be removed in the next release. // When importing or exporting a Jupyter Notebook add a directory change command to allow relative path loading to work. "jupyter.changeDirOnImportExport": false, // Set of commands to put as code lens above a cell. "jupyter.codeLenses": "jupyter.runcell, jupyter.runallcellsabove, jupyter.debugcell", // Regular expression used to identify code cells. All code until the next match is considered part of this cell. "jupyter.codeRegularExpression": "^(#\\s*%%|#\\s*\\<codecell\\>|#\\s*In\\[\\d*?\\]|#\\s*In\\[ \\])", // This setting has been deprecated, please use `interactiveWindow.collapseCellInputCode` instead. // Collapse cell input code by default. "jupyter.collapseCellInputCodeByDefault": true, // This setting is deprecated and will be removed in an upcoming release. // Whether or not to use the theme's peek color as the background for the input box. "jupyter.colorizeInputBox": true, // Set of debug commands to put as code lens above a cell while debugging. "jupyter.debugCodeLenses": "jupyter.debugcontinue, jupyter.debugstop, jupyter.debugstepover", // When debugging, debug just my code. "jupyter.debugJustMyCode": true, // Path to debugpy bits for debugging cells. "jupyter.debugpyDistPath": "", // Draw a highlight behind the currently active cell. "jupyter.decorateCells": true, // Cell marker used for delineating a cell in a python file. "jupyter.defaultCellMarker": "# %%", // When true, disables Jupyter from being automatically started for you. You must instead run a cell to start Jupyter. "jupyter.disableJupyterAutoStart": false, // Enables moving to the next cell when clicking on a 'Run Cell' code lens. "jupyter.enableAutoMoveToNextCell": true, // Enables code lens for 'cells' in a python file. "jupyter.enableCellCodeLens": true, // This setting is deprecated and will be removed in the next release. // Enables scrolling for large cell outputs in the Notebook Editor. This setting does not apply to the Interactive Window. "jupyter.enableScrollingForCellOutputs": true, // Enable exporting a python file into a jupyter notebook and run all cells when doing so. "jupyter.exportWithOutputEnabled": false, // Generate SVG output for notebook plots. This allows for better display in the plot viewer at the cost of generation speed and file size. "jupyter.generateSVGPlots": false, // This setting is deprecated and will be removed in the next release. // Don't use the VS Code theme in the Interactive window (requires reload of VS Code). This forces the Interactive window to use 'Light +(default light)' and disables matplotlib defaults. "jupyter.ignoreVscodeTheme": false, // Behavior of the Interactive Window. 'perFile' will create a new interactive window for every file that runs a cell. 'single' allows a single window. 'multiple' allows the creation of multiple. "jupyter.interactiveWindowMode": "multiple", // When a Notebook Editor or Interactive Window Jupyter server is started, these arguments will be passed to it. By default this list is generated by the Jupyter Extension. "jupyter.jupyterCommandLineArguments": [], // Amount of time (in ms) to wait for an interrupt before asking to restart the Jupyter kernel. "jupyter.jupyterInterruptTimeout": 10000, // Number of times to attempt to connect to the Jupyter Notebook "jupyter.jupyterLaunchRetries": 3, // Amount of time (in ms) to wait for the Jupyter Notebook server to start. "jupyter.jupyterLaunchTimeout": 60000, // Determines the type of connection for talking to jupyter. Local will start kernels locally. Remote allows for connections to remote servers "jupyter.jupyterServerType": "", // List of Jupyter Kernels and/or python environments that are to be excluded from the Kernel picker. "jupyter.kernels.filter": [], // Uncomment shell assignments (#!), line magic (#!%) and cell magic (#!%%) when parsing code cells. "jupyter.magicCommandsAsComments": false, // Regular expression used to identify markdown cells. All comments after this expression are considered part of the markdown. "jupyter.markdownRegularExpression": "^(#\\s*%%\\s*\\[markdown\\]|#\\s*\\<markdowncell\\>)", // This setting is deprecated and will be removed in the next release. // Maximum size (in pixels) of text output in the Notebook Editor before a scrollbar appears. First enable scrolling for cell outputs in settings. "jupyter.maxOutputSize": 400, // Append a new empty cell to an interactive window file on running the currently last cell. "jupyter.newCellOnRunLast": true, // Set the root directory for running notebooks and the Interactive window. "jupyter.notebookFileRoot": "${fileDirname}", // When debugging a cell, open this port on the remote box. If -1 is specified, a random port between 8889 and 9000 will be attempted. "jupyter.remoteDebuggerPort": -1, // This setting is deprecated and will be removed in the next release. // Search all installed Python interpreters for a Jupyter installation when starting the Interactive window "jupyter.searchForJupyter": true, // When pressing shift+enter, send selected code in a Python file to the Jupyter interactive window as opposed to the Python terminal. "jupyter.sendSelectionToInteractiveWindow": false, // This setting is deprecated and will be removed in the next release. // Show cell input code. "jupyter.showCellInputCode": true, // Show the Outline button in the Jupyter notebook toolbar. "jupyter.showOutlineButtonInNotebookToolbar": true, // Stop running cells if a cell throws an exception. "jupyter.stopOnError": true, // When debugging a cell, stop on the first line. "jupyter.stopOnFirstLineWhileDebugging": true, // This setting is deprecated in favor of `notebook.output.textLineLimit`. This setting will be removed in an upcoming release. // Limit the amount of text in Interactive cell text output to this value. 0 to allow any amount of characters. "jupyter.textOutputLimit": 20000, // In the Interactive window and Notebook Editor theme matplotlib outputs to match the VS Code editor theme. "jupyter.themeMatplotlibPlots": false, // When running Jupyter locally, create a default empty Jupyter config for the Interactive window "jupyter.useDefaultConfigForJupyter": true, // Types to exclude from showing in the Interactive variable explorer "jupyter.variableExplorerExclude": "module;function;builtin_function_or_method;ABCMeta;type" }, { // Speed up completion by building the project once on startup to initialize the cache. "haxe.buildCompletionCache": true, // Options for code generation "haxe.codeGeneration": {}, // Array of switchable configurations for the Haxe completion server. Each configuration is an array of command-line arguments, see item documentation for more details. "haxe.configurations": [], // A regex that paths of source files have to match to be included in diagnostics. Defaults to `"${workspaceRoot}"` so only files within your workspace are included. You can use `"${haxelibPath}/<library-name>"` to only show results for a specific haxelib. Use `".*?"` to see all results, including haxelibs. "haxe.diagnosticsPathFilter": "${workspaceRoot}", // Use "haxe.configurations" instead // "haxe.displayConfigurations": [], // Integer value for the port to open on the display server, or `"auto"`. Can be used to `--connect` Haxe build commands. "haxe.displayPort": "auto", // Haxe completion server configuration "haxe.displayServer": {}, // Add closing brace at the end of one-line `if/for/while` body expressions "haxe.enableBraceBodyWrapping": false, // Enable code lens to show some statistics "haxe.enableCodeLens": false, // Use the extension's Haxe server to compile auto-generated tasks. Requires `"haxe.displayPort"` to be set. "haxe.enableCompilationServer": true, // Whether a warning popup should be shown if the completion cache build has failed. "haxe.enableCompletionCacheWarning": true, // Enable automatic diagnostics of Haxe files, run automatically on open and save. "haxe.enableDiagnostics": true, // Align new line brackets with Allman style. Can have typing overhead and is incompatible with the Vim extension. "haxe.enableExtendedIndentation": false, // Use "haxe.enableServerView" instead // "haxe.enableMethodsView": false, // Enable the "Haxe Server" view container for performance and cache debugging. "haxe.enableServerView": false, // Whether signature help should include documentation or not. "haxe.enableSignatureHelpDocumentation": true, // A list of dot paths (packages, modules, types) to exclude from classpath parsing, completion and workspace symbols. Can be useful to improve performance. "haxe.exclude": [ "zpp_nape" ], // Path to the Haxe executable or an object containing a Haxe executable configuration "haxe.executable": "auto", // Upper limit for the number of completion items that can be shown at once. "haxe.maxCompletionItems": 1000, // Options for postfix completion "haxe.postfixCompletion": {}, // Configures which presentation options to use for generated tasks by default (see `presentation` in `tasks.json`). "haxe.taskPresentation": { "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": true, "clear": false }, // Whether to revert to a Haxe 3 style completion where only toplevel packages and imported types are shown (effectively making it incompatible with auto-imports). *Note:* this setting has no effect with Haxe versions earlier than 4.0.0-rc.4. "haxe.useLegacyCompletion": false, // Path to the Haxelib executable "haxelib.executable": "auto" }, { // 選擇一個圖標包。 // - angular: Angular的圖標。 // - angular_ngrx: Angular和ngrx的圖標。 // - react: React的圖標。 // - react_redux: React和Redux的圖標。 // - vue: Vue的圖標。 // - vue_vuex: Vue和Vuex的圖標。 // - nest: NestJS的圖標。 // - none: 沒有啟用圖標包。 "material-icon-theme.activeIconPack": "angular", // 設置自定義文件圖標關聯(lián)。 "material-icon-theme.files.associations": {}, // 設置自定義文件夾圖標關聯(lián)。 "material-icon-theme.folders.associations": {}, // 更改文件夾圖標的顏色。 "material-icon-theme.folders.color": "#90a4ae", // 設置文件夾圖標的類型。 // - specific: 選擇特定文件夾圖標。 // - classic: 選擇經(jīng)典文件夾圖標。 // - none: 沒有文件夾圖標。 "material-icon-theme.folders.theme": "specific", // 隱藏該文件夾旁邊的箭頭。 "material-icon-theme.hidesExplorerArrows": false, // 定義自定義語言映射的圖標。 "material-icon-theme.languages.associations": {}, // 更改圖標的透明度。 "material-icon-theme.opacity": 1, // Change the saturation of the icons. "material-icon-theme.saturation": 1, // 顯示重啟消息。 "material-icon-theme.showReloadMessage": true, // 更新后顯示升級信息。 "material-icon-theme.showUpdateMessage": false, // 首次安裝后顯示歡迎信息。 "material-icon-theme.showWelcomeMessage": true }]
總結
到此這篇關于vscode中setting.json配置文件配置的文章就介紹到這了,更多相關vscode setting.json詳解內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關文章希望大家以后多多支持腳本之家!
相關文章
IDEA 2020 設置項目集成git 及svn和git之間的切換問題
這篇文章主要介紹了IDEA 2020 設置項目集成git 及svn和git之間的切換問題,本文通關圖文并茂的形式給大家介紹的非常詳細,對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下2020-09-09使用VSCode如何從github拉取項目的實現(xiàn)
這篇文章主要介紹了使用VSCode如何從github拉取項目的實現(xiàn),文中通過示例代碼介紹的非常詳細,對大家的學習或者工作具有一定的參考學習價值,需要的朋友們下面隨著小編來一起學習學習吧2020-08-08