当前位置:网站首页>EditorConfig
EditorConfig
2022-04-23 05:51:00 【Lin Zi 520】
0. The website links
1. What is? EditorConfig file ?
EditorConfig Help developers in different editors and IDE Define and maintain a consistent coding style between .EditorConfig The project consists of a file format for defining encoding styles and a set of text editor plug-ins , These plug-ins enable the editor to read the file format and follow the defined style .EditorConfig The document is easy to read , And use with version control system .
Different developers , Different editors , There are different coding styles , and EditorConfig It is a tool used to standardize the style and style of code among team developers , and .editorconfig It's its default profile .
2. Sample file
# tell EditorConfig plug-in unit , This is the root directory , Don't keep looking up
root = true
# Match all files
[*]
# Set character set
charset = utf-8
# End newline , Optional "lf"、"cr"、"crlf"
end_of_line = lf
# matching .java Final document
[*.java]
# Indent style , Optional "space"、"tab"
indent_style = space
# Number of indented spaces
indent_size = tab
# tab Width
tab_width = 4
# Remove the leading and trailing spaces in a line
trim_trailing_whitespace = true
# Insert a new line at the end of the file
insert_final_newline = false
Reference blog :
Be curious , In the root directory of the project .editorconfig file
版权声明
本文为[Lin Zi 520]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230543037346.html
边栏推荐
猜你喜欢
随机推荐
Dwsurvey is an open source questionnaire system. Solve the problem that cannot be run and modify the bug.
Solid contract DoS attack
实体中list属性为空或者null,设置为空数组
2.devops-sonar安装
多个一维数组拆分合并为二维数组
给yarn配置国内镜像加速器
Pytorch Learning record (XIII): Recurrent Neural Network
Idea plug-in --- playing songs in the background
XXL job pit guide XXL RPC remoting error (connect timed out)
JS number capitalization method
2 - software design principles
redhat实现目录下特定文本类型内关键字查找及vim模式下关键字查找
POI exports to excel, and the same row of data is automatically merged into cells
POI generates excel and inserts pictures
Pytorch学习记录(四):参数初始化
MySQL lock mechanism
Shansi Valley P290 polymorphism exercise
lambda表达式
PyQy5学习(四):QAbstractButton+QRadioButton+QCheckBox
mysql实现主从复制/主从同步








