前端setting.json配置
前端setting.json配置
{// prettier 的配置文件存放路径
# "prettier.configPath": "~/.prettierrc",// ---------------------------------------// 编辑器中文字的大小"editor.fontSize": 15,// 代码的行高,一般都是字体大小的2倍,看起来比较舒服// "editor.lineHeight": 36,// 代码缩进使用2个空格,不要使用4个空格"editor.tabSize": 2,// ---------------------------------------// 导入模块时包含模块的后缀名"path-autocomplete.extensionOnImport": true,// 路径提示"path-autocomplete.pathMappings": {"@": "${folder}/src"},// ---------------------------------------// 开启编辑器的保存自动格式化功能"editor.formatOnSave": true,// ESLint 插件的配置"editor.codeActionsOnSave": {"source.fixAll": true},"eslint.alwaysShowStatus": true,// ---------------------------------------// 设置 .vue 文件中,HTML代码的格式化插件"vetur.format.defaultFormatter.html": "js-beautify-html",// 忽略警告信息"vetur.ignoreProjectWarning": true,// 防止自动导入"vetur.completion.autoImport": false,// 不验证 .vue 组件的模板结构"vetur.validation.template": false,// vetur 默认的格式化配置项"vetur.format.defaultFormatterOptions": {// vetur 默认的格式化配置项"prettier": {"trailingComma": "none","semi": false,// 句尾添加分号"singleQuote": true, // 使用单引号替换双引号"printWidth": 300, // 每行文字个数超出此限制将会被迫换行"tabWidth": 2,"useTabs": false,"proseWrap": "never","bracketSpacing": true, // 在对象,数组括号与文字之间加空格 "{ foo: bar }""jsxBracketSameLine": false,"arrowParens": "avoid", // (x) => {} 箭头函数参数只有一个时是否要有小括号。avoid:省略括号"insertPragma": false,"vueIndentScriptAndStyle": true,"quoteProps": "as-needed","jsxSingleQuote": false, // jsx单引号"requirePragma": false,"htmlWhitespaceSensitivity": "strict","endOfLine": "lf",},"editor.formatOnSave": true,"editor.codeActionsOnSave": {"source.fixAll.eslint": true},"js-beautify-html": {"wrap_attributes": false}},// ---------------------------------------"[vue]": {"editor.defaultFormatter": "esbenp.prettier-vscode"},"[javascript]": {"editor.defaultFormatter": "vscode.typescript-language-features"},// 对json文件,使用 vscode内置JSON语言功能 进行格式化"[json]": {"editor.defaultFormatter": "esbenp.prettier-vscode"},"[html]": {"editor.defaultFormatter": "vscode.html-language-features"},"[css]": {"editor.defaultFormatter": "esbenp.prettier-vscode"},"[less]": {"editor.defaultFormatter": "esbenp.prettier-vscode"},"[scss]": {"editor.defaultFormatter": "esbenp.prettier-vscode"},"[markdown]": {"editor.defaultFormatter": "esbenp.prettier-vscode"},// 颜色主题设置"workbench.colorTheme": "Abyss",// 控制字符串中的字符是否也应进行 unicode 突出显示。"editor.unicodeHighlight.includeStrings": false,// 格式化stylus, 需安装Manta's Stylus Supremacy插件"stylusSupremacy.insertColons": true, // 是否插入冒号"stylusSupremacy.insertSemicolons": true, // 是否插入分好"stylusSupremacy.insertBraces": true, // 是否插入大括号"stylusSupremacy.insertNewLineAroundImports": false, // import之后是否换行"stylusSupremacy.insertNewLineAroundBlocks": false,"javascript.format.insertSpaceAfterConstructor": true,"vetur.format.defaultFormatter.js": "vscode-typescript","javascript.format.insertSpaceBeforeFunctionParenthesis": true,// #让函数(名)和后面的括号之间加个空格"gitlens.gitCommands.skipConfirmations": ["fetch:command","switch:command"],"files.associations": {"*.cjson": "jsonc","*.wxss": "css","*.wxs": "javascript"},"emmet.includeLanguages": {"wxml": "html"},// 指定工作台中使用的文件图标主题;若指定为 "null",则不显示任何文件图标。"workbench.iconTheme": "vscode-icons",// 控制具有未保存更改的编辑器的 自动保存。"files.autoSave": "afterDelay","breadcrumbs.enabled": false,"minapp-vscode.disableAutoConfig": true,// 控制终端的字号(以像素为单位)。"terminal.integrated.fontSize": 15,// 控制输入消息的字号(以像素为单位)。"scm.inputFontSize": 15,}
前端setting.json配置相关推荐
- VSCode - setting.json配置 - Prettier、Vetur格式化和ESLint检查
vscode 前端最佳插件配置 格式化代码时用到的插件 ESLint(代码规范和错误检查工具,控制代码质量) Prettier(代码格式化工具) Vetur(识别 vue 文件) EditorConf ...
- vscode中setting.json配置详解
vscode中的setting.json配置文件配置详解 话不多说上配置文件 大家按需复制到自己的setting.json配置文件中即可 [{// 控制是否在编辑器中显示 CodeLens." ...
- vue setting.json配置
{"editor.fontSize": 12, //编辑器字体大小"[scss]": {"editor.defaultFormatter": ...
- vscode 前端最佳插件配置
vscode最佳配置 最近更新时间: 2023.02.18 (Vscode v1.17) vscode 配置文件内容在最后,可直接copy使用 配置详解 editor是针对 vscode 的风格设置 ...
- 【vue setting.json】
vue setting.json 配置 {"editor.fontSize": 12, //编辑器字体大小"[scss]": {"editor.def ...
- vscode 的setting.json的配置
记录一下我用vscode 的setting.json的配置 { // 換行 "editor.wordWrap": "on", // 是否允许自定义的snippe ...
- VsCode配置Python项目的setting.json和launch.json两个配置文件
我们在VsCode中首次创建一个Python项目,一般情况下是不会有setting.json和launch.json两个配置文件,如下图所示: 那么这个时候我们可以通过点击下方的"运行和调使 ...
- active server pages 错误 asp 0126_微信小程序全栈开发课程【视频版】2.1 小程序前端页面初始配置、ESlint格式错误...
点击观看视频 ↓↓↓ 小程序前端页面初始配置.ESlinthttps://www.zhihu.com/video/1195030595196223488 课程文字版 1.修改src/pages文件夹 ...
- asp.net 报表页面模板_CP:基于JSON配置和vue-cli插件机制的模板复用方案
前言 Atomic Design是前端开发圈中众所周知的设计理论,尤其是在中台类型的UI开发中.基于vue.js的element-ui.iview-ui和基于react.js的Ant Design都是 ...
最新文章
- android调频收音机代码,android 收音机 FM 驱动 hal层 框架层以及应用层代码
- RAM调优之日志分析
- iOS开发之适配http请求
- JDK的Proxy技术实现AOP,InvocationHandler和Proxy详解——Spring AOP(三)
- 太阳影子定位问题研究
- 中台架构的未来在哪—开放式架构
- 计蒜客——整数转换成罗马数字
- Ubiquitous Religions
- 用Python编写斐波那契数列(Fibonacci Sequence)
- Component series.line not exists. Load it first.
- 452. 用最少数量的箭引爆气球
- gaetpy库模板sga_permut_templet简单应用
- 【数学建模】最小二乘回归+Java代码实现
- HTTPS抓包连接过程
- 【MySQL】修改用户名和密码
- 2020年中国空气压缩机行业发展现状、竞争格局及未来发展趋势分析,国内市场竞争激烈,市场规模将破600亿元「图」
- The 15th Chinese Northeast Collegiate H - Loneliness(思维,构造)
- 用户表空间限额(Oracle User Space Quota )
- 局域网联机_【进击的巨人21】【全DLCs整合】【局域网联机】【免安装解压即玩】 免费分享...
- Android studio小能手之色卡对照表
热门文章
- 浮点数保留小数点后两位(JS)
- 华为荣耀20s云服务_荣耀20S快速上手,真机体验之后说说优缺点!
- 【20201231期AI简报】视觉系统的革新:嵌入式AI摄像头!还有跨年特别活动等你来哦...
- 关于IOS虚拟机拷贝文件死机的问题
- 基于微信小程序的手机CAD软件——立现超级制造
- C#对接电子签章平台
- 前置机服务器连通_在数据交换中,前置机是什么,有怎样的作用?
- 自动驾驶第一股交出Q3成绩单,图森未来的卡车故事讲到哪?
- 四川绵阳争当大数据产业“领头羊”
- windows 10系统自动更新后卡顿