// 通過將設置放入設置文件中來覆蓋設置。
{
//-------- 編輯器配置 --------
// 控制字體系列。
"editor.fontFamily": "Consolas, 'Courier New', monospace",
// 控制字體大小。
"editor.fontSize": 14,
// 控制行高。
"editor.lineHeight": 0,
// 控制行號的可見性
"editor.lineNumbers": true,
// 控制字形邊距的可見性
"editor.glyphMargin": false,
// 顯示垂直標尺的列
"editor.rulers": [],
// 執行文字相關的導航或操作時將用作文字分隔符的字符
"editor.wordSeparators": "`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",
// 一個制表符等於的空格數。
"editor.tabSize": 4,
// 按 "Tab" 時插入空格。
"editor.insertSpaces": true,
// 當打開文件時,將基於文件內容檢測 "editor.tabSize" 和 "editor.insertSpaces"。
"editor.detectIndentation": true,
// 控制選取范圍是否有圓角
"editor.roundedSelection": true,
// 控制編輯器是否可以滾動到最后一行之后
"editor.scrollBeyondLastLine": true,
// 控制在多少個字符后編輯器會自動換到下一行。將其設置為 0 則將打開視區寬度換行(自動換行)。將其設置為 -1 則將強制編輯器始終不換行。
"editor.wrappingColumn": 300,
// 控制換行的行的縮進。可以是"none"、 "same" 或 "indent"。
"editor.wrappingIndent": "same",
// 要對鼠標滾輪滾動事件的 "deltaX" 和 "deltaY" 使用的乘數
"editor.mouseWheelScrollSensitivity": 1,
// 控制鍵入時是否應顯示快速建議
"editor.quickSuggestions": true,
// 控制延遲多少毫秒后將顯示快速建議
"editor.quickSuggestionsDelay": 10,
// 控制編輯器是否應該在左括號后自動插入右括號
"editor.autoClosingBrackets": true,
// 控制編輯器是否應在鍵入后自動設置行的格式
"editor.formatOnType": false,
// 控制鍵入觸發器字符時是否應自動顯示建議
"editor.suggestOnTriggerCharacters": true,
// 控制除了 "Tab" 以外,是否還應在 "Enter" 時接受建議。幫助避免“插入新行”或“接受建議”之間的歧義。
"editor.acceptSuggestionOnEnter": true,
// 控制編輯器是否應突出顯示選項的近似匹配
"editor.selectionHighlight": true,
// 控制可在概述標尺同一位置顯示的效果數量
"editor.overviewRulerLanes": 3,
// 控制光標閃爍動畫,接受的值為'blink'、'visible' 和 'hidden'
"editor.cursorBlinking": "blink",
// 控制光標樣式,接受的值為 'block' 和 'line'
"editor.cursorStyle": "line",
// 啟用字體連字
"editor.fontLigatures": false,
// 控制光標是否應隱藏在概述標尺中。
"editor.hideCursorInOverviewRuler": false,
// 控制編輯器是否應呈現空白字符
"editor.renderWhitespace": false,
// 控制編輯器是否顯示支持它的模式的參考信息
"editor.referenceInfos": true,
// 控制編輯器是否啟用代碼折疊功能
"editor.folding": true,
// 在制表位后插入和刪除空格
"editor.useTabStops": true,
// 刪除尾隨自動插入的空格
"editor.trimAutoWhitespace": true,
// Keep peek editors open even when double clicking their content or when hitting Escape.
"editor.stablePeek": false,
// 控制 Diff 編輯器以並排或內聯形式顯示差異
"diffEditor.renderSideBySide": true,
// 控制差異編輯器是否將對前導空格或尾隨空格的更改顯示為差異
"diffEditor.ignoreTrimWhitespace": true,
//-------- 窗口配置 --------
// 啟用后,將在新窗口中打開文件,而不是重復使用現有實例。
"window.openFilesInNewWindow": true,
// 控制重啟后重新打開文件夾的方式。選擇“none”表示永不重新打開文件夾,選擇“one”表示重新打開最后使用的一個文件夾,或選擇“all”表示打開上次會話的所有文件夾。
"window.reopenFolders": "one",
// 調整窗口的縮放級別。原始大小是 0,每次遞增(例如 1)或遞減(例如 -1)表示放大或縮小 20%。也可以輸入小數以便以更精細的粒度調整縮放級別。
"window.zoomLevel": 0,
//-------- 文件配置 --------
// 配置 glob 模式以排除文件和文件夾。
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.DS_Store": true
},
// 配置語言的文件關聯(如: "*.extension": "html")。這些關聯的優先級高於已安裝語言的默認關聯。
"files.associations": {},
// 讀取和編寫文件時將使用的默認字符集編碼。
"files.encoding": "utf8",
// 默認行尾字符。
"files.eol": "\r\n",
// 啟用后,將在保存文件時剪裁尾隨空格。
"files.trimTrailingWhitespace": false,
// 控制已更新文件的自動保存。接受的值:“off”、“afterDelay”、“onFocusChange”。如果設置為“afterDelay”,則可在 "files.autoSaveDelay" 中配置延遲。
"files.autoSave": "off",
// 控制延遲(以秒為單位),在該延遲后將自動保存更新后的文件。僅在 "files.autoSave" 設置為“afterDelay”時適用。
"files.autoSaveDelay": 1000,
// 配置文件路徑的 glob 模式以從文件監視排除。更改此設置要求重啟。如果在啟動時遇到 Code 消耗大量 CPU 時間,則可以排除大型文件夾以減少初始加載。
"files.watcherExclude": {
"**/.git/objects/**": true
},
//-------- Emmet 配置 --------
// 啟用后,按 TAB 鍵時,將展開 Emmet 縮寫。
"emmet.triggerExpansionOnTab": true,
//-------- 文件資源管理器配置 --------
// 在滾動條出現之前將顯示的最大工作文件數目。
"explorer.workingFiles.maxVisible": 9,
// 控制工作文件部分的高度是否應動態適應元素數量。
"explorer.workingFiles.dynamicHeight": true,
// 控制資源管理器是否應在打開文件時自動顯示它們。
"explorer.autoReveal": true,
//-------- HTTP 配置 --------
// 要使用的代理設置。如果尚未設置,則將從 http_proxy 和 https_proxy 環境變量獲取
"http.proxy": "",
// 是否應根據提供的 CA 列表驗證代理服務器證書。
"http.proxyStrictSSL": true,
//-------- 搜索配置 --------
// 配置 glob 模式以在搜索中排除文件和文件夾。從 files.exclude 設置中繼承所有 glob 模式。
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true
},
//-------- 更新配置 --------
// 配置從中接收更新的更新頻道。更改后需要重啟。
"update.channel": "default",
//-------- GIT 配置 --------
// 是否啟用了 GIT
"git.enabled": true,
// 可執行 GIT 的路徑
"git.path": null,
// 是否啟用了自動提取。
"git.autofetch": true,
//-------- 標記預覽配置 --------
// 標記預覽中供使用的 CSS 樣式表的 URL 或本地路徑列表。
"markdown.styles": [],
//-------- JSON configuration --------
// Associate schemas to JSON files in the current project
"json.schemas": [],
//-------- 遙測配置 --------
// 啟用要發送給 Microsoft 的使用情況數據和錯誤。
"telemetry.enableTelemetry": true,
//-------- 遙測配置 --------
// 啟用要發送給 Microsoft 的故障報表。
// 此選項需重啟才可生效。
"telemetry.enableCrashReporter": true,
//-------- CSS 配置 --------
// 控制 CSS 驗證和問題嚴重性。
// 啟用或禁用所有驗證
"css.validate": true,
// 使用供應商特定前綴時,確保同時包括所有其他供應商特定屬性
"css.lint.compatibleVendorPrefixes": "ignore",
// 使用供應商特定前綴時,還應包括標准屬性
"css.lint.vendorPrefix": "warning",
// 不要使用重復的樣式定義
"css.lint.duplicateProperties": "ignore",
// 不要使用空規則集
"css.lint.emptyRules": "warning",
// Import 語句不會並行加載
"css.lint.importStatement": "ignore",
// 使用邊距或邊框時,不要使用寬度或高度
"css.lint.boxModel": "ignore",
// 已知通配選擇符 (*) 慢
"css.lint.universalSelector": "ignore",
// 零不需要單位
"css.lint.zeroUnits": "ignore",
// @font-face 規則必須定義 "src" 和 "font-family" 屬性
"css.lint.fontFaceProperties": "warning",
// 十六進制顏色必須由三個或六個十六進制數字組成
"css.lint.hexColorLength": "error",
// 參數數量無效
"css.lint.argumentsInColorFunction": "error",
// 未知的屬性。
"css.lint.unknownProperties": "warning",
// 僅當支持 IE7 及更低版本時,才需要 IE hack
"css.lint.ieHack": "ignore",
// 未知的供應商特定屬性。
"css.lint.unknownVendorSpecificProperties": "ignore",
// 因顯示而忽略屬性。例如,使用 "display: inline"時,寬度、高度、上邊距、下邊距和 float 屬性將不起作用
"css.lint.propertyIgnoredDueToDisplay": "warning",
// 避免使用 !important。它表明整個 CSS 的特異性已經失去控制且需要重構。
"css.lint.important": "ignore",
// 避免使用“float”。浮動會帶來脆弱的 CSS,如果布局的某一方面更改,將很容易破壞 CSS。
"css.lint.float": "ignore",
// 選擇器不應包含 ID,因為這些規則與 HTML 的耦合過於緊密。
"css.lint.idSelector": "ignore",
//-------- HTML 配置 --------
// 每行最大字符數(0 = 禁用)。
"html.format.wrapLineLength": 120,
// 標記列表,以逗號分隔,不應重設格式。"null" 默認為所有內聯標記。
"html.format.unformatted": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, script, select, small, span, strong, sub, sup, textarea, tt, var",
// 縮進 <head> 和 <body> 部分。
"html.format.indentInnerHtml": false,
// 是否要保留元素前面的現有換行符。僅適用於元素前,不適用於標記內或文本。
"html.format.preserveNewLines": true,
// 要保留在一個區塊中的換行符的最大數量。對於無限制使用 "null"。
"html.format.maxPreserveNewLines": null,
// 格式和縮進 {{#foo}} 和 {{/foo}}。
"html.format.indentHandlebars": false,
// 以新行結束。
"html.format.endWithNewline": false,
// 標記列表,以逗號分隔,其前應有額外新行。"null" 默認為“標頭、正文、/html”。
"html.format.extraLiners": "head, body, /html",
//-------- LESS 配置 --------
// 控制 LESS 驗證和問題嚴重性。
// 啟用或禁用所有驗證
"less.validate": true,
// 使用供應商特定前綴時,確保同時包括所有其他供應商特定屬性
"less.lint.compatibleVendorPrefixes": "ignore",
// 使用供應商特定前綴時,還應包括標准屬性
"less.lint.vendorPrefix": "warning",
// 不要使用重復的樣式定義
"less.lint.duplicateProperties": "ignore",
// 不要使用空規則集
"less.lint.emptyRules": "warning",
// Import 語句不會並行加載
"less.lint.importStatement": "ignore",
// 使用邊距或邊框時,不要使用寬度或高度
"less.lint.boxModel": "ignore",
// 已知通配選擇符 (*) 慢
"less.lint.universalSelector": "ignore",
// 零不需要單位
"less.lint.zeroUnits": "ignore",
// @font-face 規則必須定義 "src" 和 "font-family" 屬性
"less.lint.fontFaceProperties": "warning",
// 十六進制顏色必須由三個或六個十六進制數字組成
"less.lint.hexColorLength": "error",
// 參數數量無效
"less.lint.argumentsInColorFunction": "error",
// 未知的屬性。
"less.lint.unknownProperties": "warning",
// 僅當支持 IE7 及更低版本時,才需要 IE hack
"less.lint.ieHack": "ignore",
// 未知的供應商特定屬性。
"less.lint.unknownVendorSpecificProperties": "ignore",
// 因顯示而忽略屬性。例如,使用 "display: inline"時,寬度、高度、上邊距、下邊距和 float 屬性將不起作用
"less.lint.propertyIgnoredDueToDisplay": "warning",
// 避免使用 !important。它表明整個 CSS 的特異性已經失去控制且需要重構。
"less.lint.important": "ignore",
// 避免使用“float”。浮動會帶來脆弱的 CSS,如果布局的某一方面更改,將很容易破壞 CSS。
"less.lint.float": "ignore",
// 選擇器不應包含 ID,因為這些規則與 HTML 的耦合過於緊密。
"less.lint.idSelector": "ignore",
//-------- Sass 配置 --------
// 控制 Sass 驗證和問題嚴重性。
// 啟用或禁用所有驗證
"sass.validate": true,
// 使用供應商特定前綴時,確保同時包括所有其他供應商特定屬性
"sass.lint.compatibleVendorPrefixes": "ignore",
// 使用供應商特定前綴時,還應包括標准屬性
"sass.lint.vendorPrefix": "warning",
// 不要使用重復的樣式定義
"sass.lint.duplicateProperties": "ignore",
// 不要使用空規則集
"sass.lint.emptyRules": "warning",
// Import 語句不會並行加載
"sass.lint.importStatement": "ignore",
// 使用邊距或邊框時,不要使用寬度或高度
"sass.lint.boxModel": "ignore",
// 已知通配選擇符 (*) 慢
"sass.lint.universalSelector": "ignore",
// 零不需要單位
"sass.lint.zeroUnits": "ignore",
// @font-face 規則必須定義 "src" 和 "font-family" 屬性
"sass.lint.fontFaceProperties": "warning",
// 十六進制顏色必須由三個或六個十六進制數字組成
"sass.lint.hexColorLength": "error",
// 參數數量無效
"sass.lint.argumentsInColorFunction": "error",
// 未知的屬性。
"sass.lint.unknownProperties": "warning",
// 僅當支持 IE7 及更低版本時,才需要 IE hack
"sass.lint.ieHack": "ignore",
// 未知的供應商特定屬性。
"sass.lint.unknownVendorSpecificProperties": "ignore",
// 因顯示而忽略屬性。例如,使用 "display: inline"時,寬度、高度、上邊距、下邊距和 float 屬性將不起作用
"sass.lint.propertyIgnoredDueToDisplay": "warning",
// 避免使用 !important。它表明整個 CSS 的特異性已經失去控制且需要重構。
"sass.lint.important": "ignore",
// 避免使用“float”。浮動會帶來脆弱的 CSS,如果布局的某一方面更改,將很容易破壞 CSS。
"sass.lint.float": "ignore",
// 選擇器不應包含 ID,因為這些規則與 HTML 的耦合過於緊密。
"sass.lint.idSelector": "ignore",
//-------- Integrated terminal configuration --------
// The path of the shell that the terminal uses on Linux.
"terminal.integrated.shell.linux": "sh",
// The path of the shell that the terminal uses on OS X.
"terminal.integrated.shell.osx": "sh",
// The path of the shell that the terminal uses on Windows.
"terminal.integrated.shell.windows": "C:\\Windows\\system32\\cmd.exe",
// The font family used by the terminal (CSS font-family format).
"terminal.integrated.fontFamily": "Menlo, Monaco, Consolas, \"Droid Sans Mono\", \"Courier New\", monospace, \"Droid Sans Fallback\"",
//-------- 外部終端配置 --------
// Customizes which terminal to run on Windows.
"terminal.external.windowsExec": "cmd",
// Customizes which terminal to run on Linux.
"terminal.external.linuxExec": "xterm",
//-------- TypeScript 配置 --------
// 指定包含要使用的 tsserver 和 lib*.d.ts 文件的文件夾路徑。
"typescript.tsdk": null,
// 完成函數的參數簽名。
"typescript.useCodeSnippetsOnMethodSuggest": false,
// 啟用/禁用 TypeScript 驗證
"typescript.validate.enable": true,
// 啟用對發送到 TS 服務器的消息進行跟蹤
"typescript.tsserver.trace": "off",
// 定義逗號分隔符后面的空格處理
"typescript.format.insertSpaceAfterCommaDelimiter": true,
// 在 For 語句中,定義分號之后的空格處理
"typescript.format.insertSpaceAfterSemicolonInForStatements": true,
// 定義二進制運算符后面的空格處理
"typescript.format.insertSpaceBeforeAndAfterBinaryOperators": true,
// 定義控制流語句中的關鍵字之后的空格處理
"typescript.format.insertSpaceAfterKeywordsInControlFlowStatements": true,
// 定義匿名函數的函數關鍵字之后的空格處理
"typescript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": true,
// 定義非空圓括號的左括號之后和右括號之前的空格處理。
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false,
// 定義非空方括號的左括號之后和右括號之前的空格處理。
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false,
// 定義左大括號是否針對函數而放置在新的一行
"typescript.format.placeOpenBraceOnNewLineForFunctions": false,
// 定義左大括號是否針對控制塊而放置在新的一行
"typescript.format.placeOpenBraceOnNewLineForControlBlocks": false,
// 啟用/禁用 JavaScript 驗證
"javascript.validate.enable": true,
// 定義逗號分隔符后面的空格處理
"javascript.format.insertSpaceAfterCommaDelimiter": true,
// 在 For 語句中,定義分號之后的空格處理
"javascript.format.insertSpaceAfterSemicolonInForStatements": true,
// 定義二進制運算符后面的空格處理
"javascript.format.insertSpaceBeforeAndAfterBinaryOperators": true,
// 定義控制流語句中的關鍵字之后的空格處理
"javascript.format.insertSpaceAfterKeywordsInControlFlowStatements": true,
// 定義匿名函數的函數關鍵字之后的空格處理
"javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": true,
// 定義非空圓括號的左括號之后和右括號之前的空格處理。
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false,
// 定義非空方括號的左括號之后和右括號之前的空格處理。
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false,
// 定義左大括號是否針對函數而放置在新的一行
"javascript.format.placeOpenBraceOnNewLineForFunctions": false,
// 定義左大括號是否針對控制塊而放置在新的一行
"javascript.format.placeOpenBraceOnNewLineForControlBlocks": false,
//-------- PHP 配置選項 --------
// 不管 php 驗證是否已啟用。
"php.validate.enable": true,
// 指向可執行的 php。
"php.validate.executablePath": null,
// 不管 linter 是在 save 還是在 type 上運行。
"php.validate.run": "onSave",
// 啟用基於字的建議。
"editor.wordBasedSuggestions": true
}