vscode-setting.json配置

 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}

猜你喜欢

转载自www.cnblogs.com/padding1015/p/12287094.html