0 Star 0 Fork 0

sylz/jingdongdaojia

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.editorconfig 2.77 KB
一键复制 编辑 原始数据 按行查看 历史
sylz 提交于 2021-03-06 19:56 . chore: add .editorconfig
# 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}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Vennasia/jingdongdaojia.git
[email protected]:Vennasia/jingdongdaojia.git
Vennasia
jingdongdaojia
jingdongdaojia
master

搜索帮助