前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >vscode-setting.json配置

vscode-setting.json配置

作者头像
xing.org1^
发布2020-02-17 11:45:26
2.2K0
发布2020-02-17 11:45:26
举报
文章被收录于专栏:前端说吧前端说吧
代码语言:javascript
复制
 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}
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2020-02-09 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档