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

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].

主站蜘蛛池模板: 泸水县| 康乐县| 望谟县| 咸丰县| 基隆市| 德化县| 邵阳县| 辰溪县| 盈江县| 策勒县| 安平县| 屏东县| 普兰县| 寿光市| 锡林郭勒盟| 通道| 德钦县| 墨脱县| 临猗县| 长治县| 嘉义县| 许昌县| 昌乐县| 黑龙江省| 炉霍县| 象山县| 昌吉市| 吉木萨尔县| 随州市| 墨江| 邵武市| 时尚| 崇明县| 衡阳市| 天气| 海晏县| 乌海市| 安达市| 连州市| 柘荣县| 和林格尔县|