1{
2 "window.zoomLevel": 1,
3 "git.ignoreMissingGitWarning": true, // 忽略“缺失git”的警告
4 "files.autoSave": "onFocusChange", // 離開頁面自動保存
5 "workbench.colorTheme": "Default Light+", // 配色
6 "editor.tabSize": 2, // 縮進,tab格數
7 "editor.fontSize": 14, // 字號
8 // 文本頭
9 "fileheader.Author": "@Guojufeng",
10 "fileheader.LastModifiedBy": "@Guojufeng",
11 // 快捷瀏覽html頁面
12 "view-in-browser.customBrowser": "chrome",
13 "open-in-browser.default": "chrome",
14 "explorer.confirmDragAndDrop": false,
15 "files.associations": {
16 "*.cjson": "jsonc",
17 "*.wxss": "css",
18 "*.wxs": "javascript"
19 },
20 "minapp-vscode.disableAutoConfig": true,
21 // 顯示編輯時的控制字符(markdown中刪除不干凈出現的“s”)
22 "editor.renderControlCharacters": true,
23 "explorer.confirmDelete": false,
24 "git.confirmSync": false,
25 "git.autofetch": true,
26 "git.enableSmartCommit": true,
27 "python.jediEnabled": false,
28 "breadcrumbs.enabled": true,
29 // 每次保存的時候自動格式化
30 // "editor.formatOnType": true,
31 "editor.formatOnSave": true,
32 // 在保存時運行的代碼操作類型。
33 "editor.codeActionsOnSave": {
34 "source.fixAll.eslint": true
35 },
36 // 自動美化
37 "beautify.language": {
38 "js": {
39 "type": ["javascript", "json"],
40 "filename": [".eslintrc", ".jsbeautify"]
41 },
42 "css": ["css", "scss"],
43 "html": ["htm", "html", "vue"]
44 },
45 // 去掉代碼結尾的分號
46 "prettier.semi": false,
47 // 單引號,而不是雙引號
48 "prettier.jsxSingleQuote": true,
49 "prettier.singleQuote": true,
50 // prettier使用eslint格式校驗
51 "prettier.eslintIntegration": true,
52 // #讓函數(名)和后面的括號之間加個空格
53 "typescript.format.insertSpaceBeforeFunctionParenthesis": true,
54 "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
55 // 每次保存的時候將代碼按eslint格式進行修復
56 "eslint.autoFixOnSave": true,
57 // eslint添加 vue 支持
58 "eslint.validate": [
59 "javascript",
60 "javascriptreact",
61 {
62 "language": "html",
63 "autoFix": true
64 },
65 {
66 "language": "vue",
67 "autoFix": true
68 }
69 ],
70 // jsx中使用emmet自動補全代碼
71 "emmet.triggerExpansionOnTab": true,
72 // 擴展emmet的支持
73 "emmet.includeLanguages": {
74 "wxml": "html",
75 "javascript": "javascriptreact"
76 },
77 // 讓vue中的js按編輯器自帶的ts格式進行格式化
78 // "vetur.format.defaultFormatter.js": "prettier",
79 "vetur.format.defaultFormatter.js": "vscode-typescript",
80 "vetur.format.defaultFormatterOptions": {
81 "js-beautify-html": {
82 "wrap_attributes": "force-aligned"
83 },
84 // vue文件轉換單引號、去掉分號
85 "prettier": {
86 "semi": false,
87 "singleQuote": true
88 }
89 }
90}