VUE保存自动格式化
2023-09-11 14:17:22 时间
"editor.formatOnSave": true,
https://www.cnblogs.com/vs1435/p/11798670.html
ctrl + shift + p
> Configure Language Specific Settings > Vue > 编辑文件.
{ // 主题 "workbench.colorTheme": "Monokai", // vscode默认启用了根据文件类型自动设置tabsize的选项 "editor.detectIndentation": false, // 重新设定tabsize "editor.tabSize": 2, // #每次保存的时候自动格式化 "editor.formatOnSave": true, // #每次保存的时候将代码按eslint格式进行修复 "eslint.autoFixOnSave": true, // 添加 vue 支持 "eslint.validate": [ "javascript", "javascriptreact", { "language": "vue", "autoFix": true } ], // #让函数(名)和后面的括号之间加个空格 "javascript.format.insertSpaceBeforeFunctionParenthesis": false, // #让vue中的js按编辑器自带的ts格式进行格式化 "vetur.format.defaultFormatter.js": "vscode-typescript", // #这个按用户自身习惯选择 "vetur.format.defaultFormatter.html": "js-beautify-html", "vetur.format.defaultFormatterOptions": { "js-beautify-html": { // #vue组件中html代码格式化样式 "wrap_attributes": "force-expand-multiline" // "wrap_attributes": "force" // "wrap_attributes": "force-aligned", // "wrap_attributes": "auto" } }, "explorer.confirmDelete": false, "window.zoomLevel": 0, "git.enableSmartCommit": true, "diffEditor.ignoreTrimWhitespace": false, "[vue]": {}, "editor.codeActionsOnSave": { "source.fixAll.eslint": true }, }
相关文章
- vue - Vue介绍
- 【Vue+element+admin】登陆页面篇(login.vue)
- Vue创建一个路由项目(Vue Router)
- Vue制作简易购物车
- Vue - 完美解决小数的四则运算(加减乘除)导致精度丢失问题,提供详细计算示例代码vue数据计算丢失精度
- 初步整合vue-element-admin和GitDataV两个Vue开源框架方案实现大数据可视化
- Vue——详解MVVM模型在vue中的使用
- Vue项目--轮播图的实现
- vue-devtools 获取到 vuex store 和 Vue 实例的?
- 【VSCode】配置vue快捷键/快速输入/模板
- vue-cli4打包优化
- vue内嵌套其他页面
- vue-cli 4以上 vue.config.js
- 03-vue基础-组件
- 在vue.config.js中模拟后端接口数据
- vue学习笔记九:Jquery VS Vue之遍历方法对照
- vue学习笔记四:Jquery VS Vue之元素操作明细对照
- vue学习笔记十:Jquery VS Vue之页面动画明细对照
- 浅析按需引入自定义组件unplugin-vue-components、按需自动导入api unplugin-auto-import的使用和vite-plugin-style-import使用
- vue component动态组件
- Django+Vue项目学习第六篇:vue+django发送post请求,设置不同content-type,前后端如何处理参数
- Vue脚手架报错: Component name “xxx“ should always be multi-word(vue/multi-word-component-names)的解决办法
- vue用Export2Excel 自动换行
- vue axios 批量删除 数组参数