humans.txt 記錄參加該網頁設計和創建的相關人員的信息。javascript
示例: /* TEAM */ 開發人員:小火柴 網站: webhuochai.com 電子郵件: 121631835@qq.com /* SITE */ 最後更新: 2017/07/13 語言: HTML五、CSS三、javascript
.editorconfig 是用來協同團隊開發人員之間的代碼的風格及樣式規範化的默認配置文件。java
示例: # 告訴EditorConfig插件,這是根文件,不用繼續往上查找 root = true # 匹配所有文件 [*] # 結尾換行符,可選"lf"、"cr"、"crlf" end_of_line = lf # 在文件結尾插入新行 insert_final_newline = true # 刪除一行中的先後空格 trim_trailing_whitespace = true # 匹配js和py結尾的文件 [*.{js,py}] # 設置字符集 charset = utf-8 # 匹配py結尾的文件 [*.py] # 縮進風格,可選"space"、"tab" indent_style = space # 縮進的空格數 indent_size = 4 # 如下匹配,類同 [Makefile] indent_style = tab # tab的寬度 tab_width = 4 # 如下匹配,類同 [lib/**.js] indent_style = space indent_size = 2 [{package.json,.travis.yml}] indent_style = space indent_size = 2 注意事項: 一、若是是windows用戶,若是沒法建立.editorconfig文件,則須要先建立.editorconfig.文件,系統會自動重命名成.editorconfig文件。 二、EditorConfig的匹配規則是從上往下,即先定義的規則優先級比後定義的優先級要高。 三、插件安裝,在GitHub上已經有了各類流行編輯器的插件源代碼,可根聽說明安裝。 四、對於VS Core,對應的插件名是EditorConfig for VS Code。 五、這裏列舉了VS Code支持的規則: indent_style indent_size tab_width end_of_line insert_final_newline trim_trailing_whitespace
注:web