tools - vscode - setting
阿新 • • 發佈:2021-12-22
tools - vscode - setting
Lee2{ "security.workspace.trust.untrustedFiles": "open", "workbench.iconTheme": "vscode-icons", "workbench.colorTheme": "Visual Studio Light", "window.zoomLevel": 0, "editor.wordWrap": "on", // 程式碼換行 "editor.fontSize": 14, "editor.multiCursorModifier": "ctrlCmd", "editor.suggestSelection": "first", "search.followSymlinks": false, // 開啟後記憶體爆滿 "files.autoSave": "off", "git.autofetch": false, // "git.path": "C:\Program Files\Git\cmd\git.exe", git配置 "vsicons.dontShowNewVersionMessage": true, "explorer.confirmDelete": false, // 兩個選擇器中是否換行 /** 格式化 */ "diffEditor.ignoreTrimWhitespace": false, // vscode預設啟用了根據檔案型別自動設定tabsize的選項 "editor.detectIndentation": false, // 重新設定tabsize "editor.tabSize": 4, "editor.codeActionsOnSave": { "source.fixAll.eslint": true, "source.fixAll.stylelint": true }, // #每次儲存的時候自動格式化 "editor.formatOnSave": false, // #每次儲存的時候將程式碼按eslint格式進行修復 // "eslint.autoFixOnSave": false, // 關閉eslint 語法檢測 "eslint.enable": false, "eslint.format.enable": true, //autoFix預設開啟,只需輸入字串陣列即可 "eslint.validate": [ "javascript", "javascriptreact", "vue", // 新增 vue 支援 "html" ], // 格式化stylus, 需安裝Manta's Stylus Supremacy外掛 "stylusSupremacy.insertColons": false, // 是否插入冒號 "stylusSupremacy.insertSemicolons": false, // 是否插入分號 "stylusSupremacy.insertBraces": false, // 是否插入大括號 "stylusSupremacy.insertNewLineAroundImports": false, // import之後是否換行 "stylusSupremacy.insertNewLineAroundBlocks": false, // #讓prettier使用eslint的程式碼格式進行校驗 "prettier.eslintIntegration": true, // #去掉程式碼結尾的分號 "prettier.semi": true, // #使用帶引號替代雙引號 "prettier.singleQuote": true, // #讓函式(名)和後面的括號之間加個空格 "javascript.format.insertSpaceBeforeFunctionParenthesis": true, "javascript.preferences.quoteStyle": "single", // 用於快速修復的首選引用樣式: single (單引號)、double (雙引號) 或 auto (從已有 import 語句中推測引號型別)。 // #這個按使用者自身習慣選擇 "vetur.format.defaultFormatter.html": "js-beautify-html", // #讓vue中的js按編輯器自帶的ts格式進行格式化 "vetur.format.defaultFormatter.js": "vscode-typescript", "vetur.validation.template": false, "vetur.format.defaultFormatterOptions": { "js-beautify-html": { "wrap_line_length": 120, "wrap_attributes": "auto" // #vue元件中html程式碼格式化樣式 } }, "[vue]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[jsonc]": { "editor.defaultFormatter": "vscode.json-language-features" }, "[json]": { "editor.defaultFormatter": "vscode.json-language-features" }, "[javascript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, /** 格式化 end */ /** todo-tree settings start */ "todo-tree.regex.regex": "((//|#|<!--|;|/\\*|^)\\s*($TAGS):|^\\s*- \\[ \\])", "todo-tree.general.tags": [ "BUG", "HACK", "FIXME", "TODO", "XXX", "???", "done", "tag", "bug", "fixme", "todo", "note" ], "todo-tree.regex.regexCaseSensitive": false, "todo-tree.tree.showInExplorer": true, "todo-tree.highlights.defaultHighlight": { "foreground": "white", "background": "yellow", "icon": "check", "rulerColour": "yellow", "type": "tag", "iconColour": "yellow" }, "todo-tree.highlights.customHighlight": { "todo": { "background": "yellow", "rulerColour": "yellow", "iconColour": "yellow" }, "???": { "background": "yellow", "rulerColour": "yellow", "iconColour": "yellow" }, "bug": { "background": "red", "icon": "bug", "rulerColour": "red", "iconColour": "red", }, "FIXME": { "background": "red", "icon": "beaker", "rulerColour": "red", "iconColour": "red", }, "tag": { "background": "blue", "icon": "tag", "rulerColour": "blue", "iconColour": "blue", "rulerLane": "full" }, "done": { "background": "green", "icon": "issue-closed", "rulerColour": "green", "iconColour": "green", }, "note": { "background": "#f90", "icon": "note", "rulerColour": "#f90", "iconColour ": "#f90" } } /** todo-tree settings end */ }