代码拉取完成,页面将自动刷新
# EditorConfig帮助在不同的编辑器和ide中为同一项目的多个开发人员维护一致的编码风格。EditorConfig项目由用于定义编码样式的文件格式和文本编辑器插件集合组成,这些插件使编辑器能够读取文件格式并遵守所定义的样式。EditorConfig文件很容易读,而且它们在版本控制系统中工作得很好。
# EditorConfig helps maintain consistent coding styles for multiple developers working on the same project across various editors and IDEs. The EditorConfig project consists of a file format for defining coding styles and a collection of text editor plugins that enable editors to read the file format and adhere to defined styles. EditorConfig files are easily readable and they work nicely with version control systems.
# root = true
# 匹配全部文件
[*]
# 结尾换行符 lf cr crlf
# CR:Carriage Return,对应ASCII中转义字符\r,表示回车
# LF:Linefeed,对应ASCII中转义字符\n,表示换行
# CRLF:Carriage Return & Linefeed,\r\n,表示回车并换行
# 众所周知,Windows操作系统采用两个字符来进行换行,即CRLF;
# Unix/Linux/Mac 操作系统采用单个字符LF来进行换行;
# 另外,MacIntosh操作系统(即早期的Mac操作系统)采用单个字符CR来进行换行。
end_of_line = lf
# 设置字符集
charset = utf-8
# 删除一行中的前后空格
trim_trailing_whitespace = true
# 在文件结尾插入新行
insert_final_newline = true
# 最多允许一行有多少个字符
max_line_length = 100
# 缩进风格 可选space、tab
# hard-tabs是硬件tab,就是按一个tab键,soft-tabs是软件tab,通过space键实现。
# set to tab or space to use hard tabs or soft tabs respectively.
indent_style = space
# 缩进的空格数(1个tab等于几个space),indent_style = space 时此选项生效
# a whole number defining the number of columns used for each indentation level and the width of soft tabs (when supported). When set to tab, the value of tab_width (if specified) will be used.
indent_size = 2
# indent_style = tab时此选项生效
# a whole number defining the number of columns used to represent a tab character. This defaults to the value of indent_size and doesn't usually need to be specified.
# tab_width = 2
# 设置为true以删除换行字符之前的任何空格字符
[*.md]
trim_trailing_whitespace = true
# Matches any single character in name
# [name]
# Matches any single character not in name
# [!name]
# Matches any single character
# ?
# Matches any string of characters, except path separators (/)
# *
# Matches any string of characters
# **
# Indentation override for all JS under lib directory
# [lib/**.js]
# [*.{js,py}]
# Matches any integer numbers between num1 and num2, where num1 and num2 can be either positive or negative
# {num1..num2}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。