由于其设计简单且易于实现,许多流行的开发环境都提供了对它的支持,包括但不限于: Visual Studio Code Sublime Text IntelliJ IDEA Eclipse Atom JetBrains 系列 IDE(如PyCharm, WebStorm等) Emacs Vim(通过插件) 这意味着,只要团队成员使用支持.editorconfig的编辑器或IDE,就可以很容易地维护一致的编码风格。
@104828720 是“Prettier 能做的,EditorConfig 理论上都能做”,理论上只要有相应语言的插件就可以;但事实上我见过的插件都是 C#、Java、Python 这类的,因为它们本身就有一个官方提供或推荐的 IDE(C# 是 VisualStudio,Java 是 Eclipse,Python 是 Anaconda),对 EditorConfig 的扩展支持就比较好。前端项目里 JS 的插...
https://plugins.jetbrains.com/plugin/6546-adapter-for-eclipse-code-formatter 比使用导出与formatter-m...
Eclipse Sublime Text 配置案例 # EditorConfig is awesome: https://EditorConfig.org # top-most EditorConfig file root = true [*] charset = utf-8 end_of_line = lf indent_size = 4 indent_style = space insert_final_newline = true max_line_length = 80 trim_trailing_whitespace = true [*....