首页 > 其他 > 详细

editorconfig使用

时间:2019-02-21 17:59:49      阅读:171      评论:0      收藏:0      [点我收藏+]
//是否是顶级配置文件,设置为true的时候才会停止搜索.editorconfig文件
root = true

[*]

//缩进方式tab" | "space
indent_style = space

//缩进大小
indent_size = 4

//编码格式
charset = utf-8

//是否删除行尾空格
trim_trailing_whitespace = true

//是否让文件以空行结束
insert_final_newline = true

//最大行宽。
max_line_length<number>

二、常用文件名匹配            
1、*                  
匹配除/之外的任意字符            
2、**                 
匹配任意字符串            
3、?                 
匹配任意单个字符            
4、[name]                 
匹配name字符            
5、[!name]                 
不匹配name字符            
6、[s1,s2,s3]                 
匹配给定的字符串            
7、[num1..num2]                 
匹配num1到mun2直接的整数        


三、vs code安装editorconfig
1:在vs code 搜索editorconfig并进行安装
技术分享图片

 

2:在vs code执行命令npm install -g editorconfig | npm install -D editorconfig

editorconfig使用

原文:https://www.cnblogs.com/wangcf/p/10414120.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!