打开VSCode设置

{
"editor.fontLigatures": true,
"editor.fontFamily": "Fira Code Light , Consolas, 'Courier New', monospace",
"editor.maxTokenizationLineLength": 2000000,
// 保存时自动格式化代码
"editor.formatOnSave": true,
// eslint配置项,保存时自动修复错误
"editor.codeActionsOnSave": {
"source.fixAll": true
},
// 终端
"terminal.integrated.profiles.windows": {
"cmder": {
"path": "C:\\WINDOWS\\System32\\cmd.exe"
}
},
"terminal.integrated.defaultProfile.windows": "cmder",
// json 最大编译值
"json.maxItemsComputed": 500000,
// 文件后缀支持
"files.associations": {
"*.tpl": "html"
},
"security.workspace.trust.emptyWindow": false,
"security.workspace.trust.enabled": false,
"editor.wordWrap": "on",
/** 格式化 */
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
/************** ESlint *****************/
// "eslint.enable": true,
"eslint.format.enable": true,
"eslint.run": "onType",
"eslint.nodePath": "",
"eslint.options": {
"extensions": [
".js",
".vue",
".ts",
".tsx"
]
},
"eslint.validate": [
"javascript",
"javascriptreact",
"html",
"vue"
],
"eslint.codeAction.showDocumentation": {
"enable": true
},
/************** Prettier *****************/
// "editor.defaultFormatter": "esbenp.prettier-vscode",
//
// "prettier.semi": true,
//
// "prettier.singleQuote": true,
// "editor.fontWeight": null,
// "explorer.confirmDelete": false,
// "[html]": {
// "editor.defaultFormatter": "esbenp.prettier-vscode"
// },
// "less.compile": {
// "out": "${workspaceRoot}/"
// },
// // "[typescriptreact]": {
// // "editor.defaultFormatter": "esbenp.prettier-vscode"
// // },
// "[typescript]": {
// "editor.defaultFormatter": "esbenp.prettier-vscode"
// },
// "[javascript]": {
// "editor.defaultFormatter": "esbenp.prettier-vscode"
// },
// "js/ts.implicitProjectConfig.experimentalDecorators": true,
// "[typescriptreact]": {
// "editor.defaultFormatter": "esbenp.prettier-vscode"
// },
}
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了