官术网_书友最值得收藏!

Configuring EditorConfig

EditorConfig is supported by a lot of editors. You can check whether your editor is supported or not on the official website, https://www.editorconfig.org.

You need to create a file called .editorconfig in your root directory – the configuration I use is this one:

  root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.html]
indent_size = 4

[*.css]
indent_size = 4

[*.md]
trim_trailing_whitespace = false

You can affect all the files with [], and specific files with [.extension].

主站蜘蛛池模板: 博客| 梅州市| 唐海县| 明光市| 合水县| 长沙县| 广元市| 永新县| 睢宁县| 定结县| 上饶县| 昔阳县| 苗栗市| 遂溪县| 普陀区| 沙洋县| 游戏| 南乐县| 新龙县| 北流市| 兴安盟| 孝昌县| 柘城县| 石门县| 富民县| 娄烦县| 镇远县| 温宿县| 浮山县| 普兰店市| 县级市| 通许县| 东兰县| 汉源县| 嘉善县| 庆元县| 洪泽县| 鄂托克旗| 门头沟区| 沭阳县| 徐闻县|