Fanfou Wiki

我等采石之人,当心怀建造大教堂之愿景。

用户工具

站点工具


program:editorconfig

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

后一修订版
前一修订版
program:editorconfig [2020/12/24 09:40] – 创建 adminprogram:editorconfig [2020/12/24 10:31] (当前版本) admin
行 3: 行 3:
  
 ===== 配置文件 ===== ===== 配置文件 =====
-<file toml .editorconfig>+<file ini .editorconfig>
 # https://editorconfig.org # https://editorconfig.org
  
行 23: 行 23:
  
 </file> </file>
 +
 +===== 配置说明 =====
 +<code ini>
 +# 表明这是最顶层的配置文件,这样才会停止继续向上查找 .editorconfig 文件;
 +# 查找的 .editorconfig 文件是从顶层开始读取的,类似变量作用域的效果,内部
 +# 的 .editorconfig 文件属性优先级更高
 +root = true
 +
 +# 指定作用文件格式
 +[*]
 +
 +# 缩进的类型 [space | tab]
 +indent_style = space
 +
 +# 缩进的大小
 +# tab_width: 设置整数用于指定替代tab的列数。默认值就是indent_size的值,一般无需指定。
 +indent_size = 4
 +
 +# 定义换行符 [lf | cr | crlf]
 +end_of_line = lf
 +
 +# 编码格式。支持latin1、utf-8、utf-8-bom、utf-16be和utf-16le,不建议使用uft-8-bom。
 +charset = utf-8
 +
 +# 是否除去换行行首的任意空白字符
 +trim_trailing_whitespace = true
 +
 +# 文件是否以一个空白行结尾 [true | false]
 +insert_final_newline = true
 +
 +[*.{js,html}]
 +indent_size = 2
 +
 +[*.{yaml,yml}]
 +indent_size = 2
 +
 +</code>
program/editorconfig.1608774038.txt.gz · 最后更改: 2020/12/24 09:40 由 admin