当前位置:网站首页>EditorConfig
EditorConfig
2022-04-23 05:43:00 【林仔520】
0. 官网链接
1. 什么是EditorConfig文件?
EditorConfig帮助开发人员在不同的编辑器和IDE之间定义和维护一致的编码样式。EditorConfig项目由用于定义编码样式的文件格式和一组文本编辑器插件组成,这些插件使编辑器能够读取文件格式并遵循定义的样式。EditorConfig文件易于阅读,并且与版本控制系统配合使用。
不同的开发人员,不同的编辑器,有不同的编码风格,而EditorConfig就是用来协同团队开发人员之间的代码的风格及样式规范化的一个工具,而.editorconfig正是它的默认配置文件。
2. 示例文件
# 告诉EditorConfig插件,这是根目录,不用继续往上查找
root = true
# 匹配全部文件
[*]
# 设置字符集
charset = utf-8
# 结尾换行符,可选"lf"、"cr"、"crlf"
end_of_line = lf
# 匹配.java结尾的文件
[*.java]
# 缩进风格,可选"space"、"tab"
indent_style = space
# 缩进的空格数
indent_size = tab
# tab的宽度
tab_width = 4
# 删除一行中的前后空格
trim_trailing_whitespace = true
# 在文件结尾插入新行
insert_final_newline = false
参考博客:
版权声明
本文为[林仔520]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_37955704/article/details/115462796
边栏推荐
猜你喜欢
随机推荐
Golang implements Ping connectivity detection case through exec module
2.devops-sonar安装
线性规划问题中可行解,基本解和基本可行解有什么区别?
rsync实现文件服务器备份
Meta annotation (annotation of annotation)
SQL statement simple optimization
多线程与高并发(1)——线程的基本知识(实现,常用方法,状态)
The list attribute in the entity is empty or null, and is set to an empty array
Golang通过exec模块实现Ping连通性检测案例
mysql sql优化之Explain
interviewter:介绍一下MySQL日期函数
MySQL事务
The difference between cookie and session
建表到页面完整实例演示—联表查询
SQL基础:初识数据库与SQL-安装与基本介绍等—阿里云天池
Linear sieve method (prime sieve)
2 - principes de conception de logiciels
Redis经典面试题总结2022
2-軟件設計原則
Excel sets row and column colors according to cell contents