vscode编辑器个人性化配置,用于vue、react+eslint代码规范

本文主要是介绍vscode编辑器个人性化配置,用于vue、react+eslint代码规范,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

vscode是编辑器setting.json配置

{"workbench.sideBar.location": "left","editor.fontSize": 18,"editor.tabSize": 2,"editor.formatOnSave": true, //每次保存自动格式化(在vue项目中可能需要关闭掉)"editor.formatOnType": true,"editor.snippetSuggestions": "top",// Controls whether format on paste is on or off"editor.formatOnPaste": true,"window.zoomLevel": 1,"atomKeymap.promptV3Features": true,"vetur.format.defaultFormatter.html": "js-beautify-html","editor.multiCursorModifier": "ctrlCmd","files.autoSave": "off","editor.detectIndentation": false, //缩进"vetur.validation.template": false, //遍历时报错"explorer.confirmDragAndDrop": false, // 2019-1-7添加"editor.wordWrap": "on", //换行"terminal.integrated.shell.windows": "D:\\git\\Git\\bin\\bash.exe", //配置git终端"team.showWelcomeMessage": false, //scss报错"emmet.syntaxProfiles": {"vue-html": "html","vue": "html"},"html.format.wrapAttributes": "force-aligned",// 文件顶部注释"fileheader.customMade": {"Author": "renlei","Date": "Do not edit", // 文件创建时间(不变)"LastEditors": "renlei", // 文件最后编辑者"LastEditTime": "Do not edit", // 文件最后编辑时间"Description": "" //描述},// 函数注释"fileheader.cursorMode": {"name": "handle","description": "","param": ":{ type }","return": ""},"eslint.options": {"parserOptions": {"ecmaVersion": 6,"ecmaFeatures": {"jsx": true}}},"emmet.includeLanguages": {"javascript": "javascriptreact","aspx": "html"},"emmet.triggerExpansionOnTab": true,"eslint.validate": ["javascript","javascriptreact","typescript","typescriptreact","html","vue","jsx"],"prettier.singleQuote": false,"prettier.semi": true,// "vetur.format.defaultFormatterOptions": {//     "wrap_attributes": "force-aligned"// },//这是大括号后不换行"beautify.config": {"brace_style": "collapse,preserve-inline"},// Set backgroundColor"highlight-icemode.backgroundColor": "red",// Set Border Color"highlight-icemode.borderColor": "blue","vetur.format.defaultFormatter.js": "vscode-typescript","vetur.format.defaultFormatterOptions": {"js-beautify-html": {"wrap_attributes": "force-aligned" // 可以换成上面任意一种value}},//html行内样式提示"editor.parameterHints": true,"editor.quickSuggestions": {"other": true,"comments": true,"strings": true},"[less]": {"editor.defaultFormatter": "esbenp.prettier-vscode"},"[javascript]": {"editor.defaultFormatter": "esbenp.prettier-vscode"},"[html]": {"editor.defaultFormatter": "esbenp.prettier-vscode"},"[scss]": {"editor.defaultFormatter": "michelemelluso.code-beautifier"},"[css]": {"editor.defaultFormatter": "michelemelluso.code-beautifier"},"[json]": {"editor.defaultFormatter": "vscode.json-language-features"},"vsicons.dontShowNewVersionMessage": true,"[php]": {"editor.defaultFormatter": "bmewburn.vscode-intelephense-client"},"[jsonc]": {"editor.defaultFormatter": "vscode.json-language-features"},"[typescript]": {"editor.defaultFormatter": "vscode.typescript-language-features"},"editor.codeActionsOnSave": {"source.fixAll.eslint": true},"editor.suggest.snippetsPreventQuickSuggestions": false,"update.mode": "none","typescript.disableAutomaticTypeAcquisition": true,"[vue]": {"editor.defaultFormatter": "esbenp.prettier-vscode"},"workbench.colorTheme": "Dracula","javascript.updateImportsOnFileMove.enabled": "always"
}

 

这篇关于vscode编辑器个人性化配置,用于vue、react+eslint代码规范的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/543958

相关文章

HTML5的input标签的`type`属性值详解和代码示例

《HTML5的input标签的`type`属性值详解和代码示例》HTML5的`input`标签提供了多种`type`属性值,用于创建不同类型的输入控件,满足用户输入的多样化需求,从文本输入、密码输入、... 目录一、引言二、文本类输入类型2.1 text2.2 password2.3 textarea(严格

Spring配置扩展之JavaConfig的使用小结

《Spring配置扩展之JavaConfig的使用小结》JavaConfig是Spring框架中基于纯Java代码的配置方式,用于替代传统的XML配置,通过注解(如@Bean)定义Spring容器的组... 目录JavaConfig 的概念什么是JavaConfig?为什么使用 JavaConfig?Jav

JAVA项目swing转javafx语法规则以及示例代码

《JAVA项目swing转javafx语法规则以及示例代码》:本文主要介绍JAVA项目swing转javafx语法规则以及示例代码的相关资料,文中详细讲解了主类继承、窗口创建、布局管理、控件替换、... 目录最常用的“一行换一行”速查表(直接全局替换)实际转换示例(JFramejs → JavaFX)迁移建

Spring Boot Interceptor的原理、配置、顺序控制及与Filter的关键区别对比分析

《SpringBootInterceptor的原理、配置、顺序控制及与Filter的关键区别对比分析》本文主要介绍了SpringBoot中的拦截器(Interceptor)及其与过滤器(Filt... 目录前言一、核心功能二、拦截器的实现2.1 定义自定义拦截器2.2 注册拦截器三、多拦截器的执行顺序四、过

Go异常处理、泛型和文件操作实例代码

《Go异常处理、泛型和文件操作实例代码》Go语言的异常处理机制与传统的面向对象语言(如Java、C#)所使用的try-catch结构有所不同,它采用了自己独特的设计理念和方法,:本文主要介绍Go异... 目录一:异常处理常见的异常处理向上抛中断程序恢复程序二:泛型泛型函数泛型结构体泛型切片泛型 map三:文

springboot的controller中如何获取applicatim.yml的配置值

《springboot的controller中如何获取applicatim.yml的配置值》本文介绍了在SpringBoot的Controller中获取application.yml配置值的四种方式,... 目录1. 使用@Value注解(最常用)application.yml 配置Controller 中

springboot中配置logback-spring.xml的方法

《springboot中配置logback-spring.xml的方法》文章介绍了如何在SpringBoot项目中配置logback-spring.xml文件来进行日志管理,包括如何定义日志输出方式、... 目录一、在src/main/resources目录下,也就是在classpath路径下创建logba

MyBatis中的两种参数传递类型详解(示例代码)

《MyBatis中的两种参数传递类型详解(示例代码)》文章介绍了MyBatis中传递多个参数的两种方式,使用Map和使用@Param注解或封装POJO,Map方式适用于动态、不固定的参数,但可读性和安... 目录✅ android方式一:使用Map<String, Object>✅ 方式二:使用@Param

SpringBoot返回文件让前端下载的几种方式

《SpringBoot返回文件让前端下载的几种方式》文章介绍了开发中文件下载的两种常见解决方案,并详细描述了通过后端进行下载的原理和步骤,包括一次性读取到内存和分块写入响应输出流两种方法,此外,还提供... 目录01 背景02 一次性读取到内存,通过响应输出流输出到前端02 将文件流通过循环写入到响应输出流

SpringBoot实现图形验证码的示例代码

《SpringBoot实现图形验证码的示例代码》验证码的实现方式有很多,可以由前端实现,也可以由后端进行实现,也有很多的插件和工具包可以使用,在这里,我们使用Hutool提供的小工具实现,本文介绍Sp... 目录项目创建前端代码实现约定前后端交互接口需求分析接口定义Hutool工具实现服务器端代码引入依赖获