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}
越努力,越幸运;阿门。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 分享 3 个 .NET 开源的文件压缩处理库,助力快速实现文件压缩解压功能!
· Ollama——大语言模型本地部署的极速利器
· DeepSeek如何颠覆传统软件测试?测试工程师会被淘汰吗?