editorconfig常用配置
生活随笔
收集整理的這篇文章主要介紹了
editorconfig常用配置
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
【通配符】
* 匹配除/之外的任意字符串 ** 匹配任意字符串 ? 匹配任意單個字符 [name] 匹配name中的任意一個單一字符 [!name] 匹配不存在name中的任意一個單一字符 {s1,s2,s3} 匹配給定的字符串中的任意一個(用逗號分隔) {num1..num2} 匹配num1到num2之間的任意一個整數, 這里的num1和num2可以為正整數也可以為負整數【各個屬性】
indent_style 設置縮進風格(tab是硬縮進,space為軟縮進) indent_size 用一個整數定義的列數來設置縮進的寬度,如果indent_style為tab,則此屬性默認為 tab_width tab_width 用一個整數來設置tab縮進的列數。默認是indent_size end_of_line 設置換行符,值為lf、cr和crlf charset 設置編碼,值為latin1、utf-8、utf-8-bom、utf-16be和utf-16le,不建議使用utf-8-bom trim_trailing_whitespace 設為true表示會去除換行行首的任意空白字符。 insert_final_newline 設為true表示使文件以一個空白行結尾 root 表示是最頂層的配置文件,發現設為true時,才會停止查找.editorconfig文件.editorconfig常用屬性
root = true[*] charset = utf-8 indent_style = space indent_size = 2 end_of_line = lf trim_trailing_whitespace = true insert_final_newline = true tab_width = 2[*.md] trim_trailing_whitespace = false[Makefile] indent_style = tab地址
editorconfig的地址 editorconfig.org
總結
以上是生活随笔為你收集整理的editorconfig常用配置的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 如何挽回女朋友的句子228个
- 下一篇: 好听有深意的游戏名字,好听的游戏昵称48