前端转vue
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

settings_backup.json 9.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. {
  2. "typescript.tsdk": "./node_modules/typescript/lib",
  3. "volar.tsPlugin": true,
  4. "volar.tsPluginStatus": false,
  5. //===========================================
  6. //============= Editor ======================
  7. //===========================================
  8. "explorer.openEditors.visible": 0,
  9. "editor.minimap.renderCharacters": false,
  10. "editor.minimap.maxColumn": 300,
  11. "editor.minimap.showSlider": "always",
  12. "editor.smoothScrolling": true,
  13. "editor.cursorBlinking": "phase",
  14. "editor.cursorSmoothCaretAnimation": "on",
  15. "editor.detectIndentation": false,
  16. "diffEditor.ignoreTrimWhitespace": false,
  17. "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
  18. "editor.formatOnPaste": true,
  19. "editor.suggestSelection": "first",
  20. "editor.trimAutoWhitespace": true,
  21. "editor.quickSuggestions": {
  22. "other": true,
  23. "comments": true,
  24. "strings": true
  25. },
  26. //===========================================
  27. //============= Other =======================
  28. //===========================================
  29. "breadcrumbs.enabled": true,
  30. "open-in-browser.default": "chrome",
  31. //===========================================
  32. //============= emmet =======================
  33. //===========================================
  34. "emmet.triggerExpansionOnTab": true,
  35. "emmet.showAbbreviationSuggestions": true,
  36. "emmet.showExpandedAbbreviation": "always",
  37. "emmet.syntaxProfiles": {
  38. "vue-html": "html",
  39. "vue": "html",
  40. "javascript": "javascriptreact",
  41. "xml": {
  42. "attr_quotes": "single"
  43. }
  44. },
  45. "emmet.includeLanguages": {
  46. "jsx-sublime-babel-tags": "javascriptreact"
  47. },
  48. //===========================================
  49. //============= files =======================
  50. //===========================================
  51. "files.trimTrailingWhitespace": false,
  52. "files.insertFinalNewline": true,
  53. "files.trimFinalNewlines": true,
  54. "search.exclude": {
  55. "**/node_modules": true,
  56. "**/*.log": true,
  57. "**/*.log*": true,
  58. "**/bower_components": true,
  59. "**/dist": true,
  60. "**/elehukouben": true,
  61. "**/.git": true,
  62. "**/.gitignore": true,
  63. "**/.svn": true,
  64. "**/.DS_Store": true,
  65. "**/.idea": true,
  66. "**/.vscode": false,
  67. "**/yarn.lock": true,
  68. "**/tmp": true,
  69. "out": true,
  70. "dist": true,
  71. "node_modules": true,
  72. "CHANGELOG.md": true,
  73. "examples": true,
  74. "res": true,
  75. "screenshots": true
  76. },
  77. "files.exclude": {
  78. "**/bower_components": true,
  79. "**/.idea": true,
  80. "**/yarn.lock": true,
  81. "**/tmp": true,
  82. "**/.git": true,
  83. "**/.svn": true,
  84. "**/.hg": true,
  85. "**/CVS": true,
  86. "**/.DS_Store": true
  87. },
  88. "files.watcherExclude": {
  89. // 文件监视排除
  90. "**/.git/objects/**": true,
  91. "**/.git/subtree-cache/**": true,
  92. "**/.vscode/**": true,
  93. "**/node_modules/**": true,
  94. "**/tmp/**": true,
  95. "**/bower_components/**": true,
  96. "**/dist/**": true,
  97. "**/yarn.lock": true
  98. },
  99. "files.associations": {
  100. "*.vue": "vue",
  101. "*.wxss": "css"
  102. },
  103. "stylelint.enable": true,
  104. "stylelint.packageManager": "yarn",
  105. "css.validate": true,
  106. "less.validate": true,
  107. "scss.validate": true,
  108. // ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
  109. // ===========================================
  110. // ================ Eslint ===================
  111. // ===========================================
  112. // "eslint.enable": true,
  113. "eslint.options": {
  114. // 配置
  115. "plugins": [
  116. "html",
  117. "vue",
  118. "javascript",
  119. "jsx",
  120. "typescript"
  121. ],
  122. "extensions": [
  123. ".js",
  124. ".jsx",
  125. ".ts",
  126. ".tsx",
  127. ".vue"
  128. ]
  129. },
  130. // "eslint.autoFixOnSave": true,
  131. // ===========================================
  132. // ================ Vetur ====================
  133. // ===========================================
  134. "vetur.experimental.templateInterpolationService": true,
  135. "vetur.format.options.tabSize": 2,
  136. "vetur.format.defaultFormatter.html": "prettyhtml",
  137. "vetur.format.defaultFormatter.scss": "prettier",
  138. "vetur.format.defaultFormatter.css": "prettier",
  139. "vetur.format.defaultFormatter.ts": "prettier-tslint",
  140. "vetur.format.defaultFormatter.js": "prettier",
  141. "vetur.languageFeatures.codeActions": false,
  142. "vetur.format.defaultFormatterOptions": {
  143. "js-beautify-html": {
  144. // [auto|force|force-aligned|force-expand-multiline]
  145. "wrap_attributes": "force",
  146. "wrap_line_length": 100,
  147. },
  148. // "prettier": {
  149. // "eslintIntegration": true,
  150. // "arrowParens": "always",
  151. // // 去掉末尾空格
  152. // "semi": false,
  153. // "singleQuote": true,
  154. // "trailingComma": "none"
  155. // }
  156. },
  157. "javascript.updateImportsOnFileMove.enabled": "never",
  158. "terminal.integrated.rendererType": "dom",
  159. "telemetry.enableCrashReporter": false,
  160. "telemetry.enableTelemetry": false,
  161. "workbench.settings.enableNaturalLanguageSearch": false,
  162. "path-intellisense.mappings": {
  163. "@/": "${workspaceRoot}/src"
  164. },
  165. "prettier.requireConfig": true,
  166. "typescript.updateImportsOnFileMove.enabled": "always",
  167. "workbench.sideBar.location": "left",
  168. "[javascriptreact]": {
  169. "editor.defaultFormatter": "esbenp.prettier-vscode"
  170. },
  171. "[typescript]": {
  172. "editor.defaultFormatter": "esbenp.prettier-vscode"
  173. },
  174. "[typescriptreact]": {
  175. "editor.defaultFormatter": "esbenp.prettier-vscode"
  176. },
  177. "[html]": {
  178. "editor.defaultFormatter": "esbenp.prettier-vscode"
  179. },
  180. "[css]": {
  181. "editor.defaultFormatter": "esbenp.prettier-vscode"
  182. },
  183. "[less]": {
  184. "editor.defaultFormatter": "vscode.css-language-features"
  185. },
  186. "[scss]": {
  187. "editor.defaultFormatter": "esbenp.prettier-vscode"
  188. },
  189. "[markdown]": {
  190. "editor.defaultFormatter": "esbenp.prettier-vscode"
  191. },
  192. "editor.codeActionsOnSave": {
  193. "source.fixAll.eslint": true
  194. },
  195. "i18n-ally.localesPaths": [
  196. "src/locales/lang"
  197. ],
  198. "i18n-ally.keystyle": "nested",
  199. "i18n-ally.sortKeys": true,
  200. "i18n-ally.namespace": true,
  201. "i18n-ally.pathMatcher": "{locale}/{namespaces}.{ext}",
  202. "i18n-ally.enabledParsers": [
  203. "ts"
  204. ],
  205. "i18n-ally.sourceLanguage": "zh",
  206. "i18n-ally.enabledFrameworks": [
  207. "vue",
  208. "react"
  209. ],
  210. "better-comments.tags": [
  211. {
  212. "tag": "todo",
  213. "color": "#FF8C00",
  214. "strikethrough": false,
  215. "underline": false,
  216. "backgroundColor": "transparent",
  217. "bold": false,
  218. "italic": false
  219. },
  220. {
  221. "tag": "bug",
  222. "color": "#FF2D00",
  223. "strikethrough": false,
  224. "underline": false,
  225. "backgroundColor": "transparent",
  226. "bold": false,
  227. "italic": false
  228. },
  229. {
  230. "tag": "warn",
  231. "color": "#3498DB",
  232. "strikethrough": false,
  233. "underline": false,
  234. "backgroundColor": "transparent",
  235. "bold": false,
  236. "italic": false
  237. },
  238. {
  239. "tag": "//",
  240. "color": "#474747",
  241. "strikethrough": true,
  242. "underline": false,
  243. "backgroundColor": "transparent",
  244. "bold": false,
  245. "italic": false
  246. },
  247. {
  248. "tag": "*",
  249. "color": "#98C379",
  250. "strikethrough": false,
  251. "underline": false,
  252. "backgroundColor": "transparent",
  253. "bold": false,
  254. "italic": false
  255. },
  256. {
  257. "tag": "info",
  258. "color": "#35A0FF",
  259. "strikethrough": false,
  260. "underline": false,
  261. "backgroundColor": "transparent",
  262. "bold": false,
  263. "italic": false
  264. },
  265. {
  266. "tag": "ques",
  267. "color": "#FF5400",
  268. "strikethrough": false,
  269. "underline": false,
  270. "backgroundColor": "transparent",
  271. "bold": false,
  272. "italic": false
  273. },
  274. ],
  275. "editor.defaultFormatter": "esbenp.prettier-vscode",
  276. "[vue]": {
  277. "editor.defaultFormatter": "esbenp.prettier-vscode"
  278. },
  279. "volar.format.initialIndent": {
  280. "html": true
  281. },
  282. "editor.tabSize": 2,
  283. "vue.codeActions.enabled": true,
  284. "prettier.eslintIntegration": true,
  285. // "better-comments.highlightPlainText": true
  286. // 新增内容
  287. "liveServer.settings.donotShowInfoMsg": true,
  288. "git.openRepositoryInParentFolders": "always",
  289. "editor.fontSize": 16,
  290. "eslint.alwaysShowStatus": true,
  291. "eslint.validate": [
  292. "javascript",
  293. "javascriptreact",
  294. "typescriptreact",
  295. "html",
  296. "vue",
  297. "typescript"
  298. ],
  299. "files.eol": "\n",
  300. "[javascript]": {
  301. "editor.defaultFormatter": "esbenp.prettier-vscode"
  302. },
  303. "vetur.completion.scaffoldSnippetSources": {
  304. "workspace": "💼",
  305. "user": "🗒️",
  306. "vetur": "✌"
  307. },
  308. "vetur.format.defaultFormatter.js": "vscode-typescript",
  309. "vetur.format.defaultFormatter.less": "none",
  310. "vetur.format.defaultFormatter.ts": "vscode-typescript",
  311. "vetur.format.defaultFormatter.html": "prettyhtml",
  312. "vetur.format.defaultFormatterOptions": {
  313. // "js-beautify-html": {
  314. // "wrap_attributes": "force"
  315. // },
  316. "prettyhtml": {
  317. "printWidth": 100,
  318. "singleQuote": false,
  319. "wrapAttributes": false,
  320. "sortAttributes": false
  321. }
  322. },
  323. "[jsonc]": {
  324. "editor.defaultFormatter": "vscode.json-language-features"
  325. },
  326. "editor.wordWrap": "on",
  327. "[html]": {
  328. "editor.defaultFormatter": "esbenp.prettier-vscode"
  329. },
  330. "files.autoSave": "afterDelay",
  331. "search.followSymlinks": false,
  332. "npm.autoDetect": "off",
  333. "npm.packageManager": "pnpm",
  334. "debug.javascript.codelens.npmScripts": "never",
  335. "npm.scriptHover": false,
  336. "editor.formatOnSave": true,
  337. "workbench.colorTheme": "Default Dark+",
  338. "editor.defaultFormatter": "esbenp.prettier-vscode"
  339. }