// 經過將設置放入設置文件中來覆蓋設置。 { //-------- 編輯器配置 -------- // 控制字體系列。 "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 }