encyclopegia.org

EditorConfig

EditorConfig is an open specification and file format for syntax highlighting, text editors and integrated development environment (IDEs) that aims to maintain a consistent coding style, particularly aimed at groups working together. It can help keep multiple editors as well as individuals using the same conventions. It stores configurations in a file which can be shared by multiple people or used in multiple editors (by the same person or by many). It defines rules for how to format different programming languages or other structured text files with conventions such as what character to end a line with and how to manage indentation.

EditorConfig is an open specification and file format for syntax highlighting, text editors and integrated development environment (IDEs) that aims to maintain a consistent coding style, particularly aimed at groups working together. It can help keep multiple editors as well as individuals using the same conventions. It stores configurations in a file which can be shared by multiple people or used in multiple editors (by the same person or by many). It defines rules for how to format different programming languages or other structured text files with conventions such as what character to end a line with and how to manage indentation. ==Concept== The project web site states "EditorConfig helps maintain consistent coding styles for multiple developers working on the same project across various editors and IDEs. The EditorConfig project consists of a file format for defining coding styles and a collection of text editor plugins that enable editors to read the file format and adhere to defined styles. EditorConfig files are easily readable and they work nicely with version control systems." ==Specification== Source: The configuration is typically stored in a UTF-8 encoded text file: . Some tools allow saving their style preferences as an EditorConfig file. Each line: May be blank (only whitespace characters) A comment that begins with ; or # A section header, which starts with a square bracket [, and ends with a square bracket ]. A section header may not have any non-whitespace characters outside of the brackets It may contain any characters between the brackets including whitespace/tabs It uses forward slash characters / as path separators Backslashes \ are prohibited, even on Windows. Key–value pair, with a = separating the key from the value Any other line format is invalid. It does not support in-line comments. If there is a ; or # character anywhere other than the start of line it is considered to be part of the text of the line. It does not support any character escaping. ===Parts/sections of file=== Preamble: optional key=value pairs that precede the first section. Section Name: String between [ ] Section: the key value pairs that follow a section name until the start of the next section. ===glob expressions=== Section names are file path globs, using a format similar to , and are based on Unix conventions. ===File location=== EditorConfig plugins look for a file named in the same directory that contains an existing file, and in parent directories of that one until it hits the root file path (e.g. in Linux/Unix/macOS or in the case of Microsoft Windows, or it finds an file that contains a line that states root=true . The most recent rules found take precedence in the order they are read. So rules in the same directory as the file would over-rule rules from higher level directories. ===File format=== Editor config uses the common INI configuration file format. ===Style options=== Some tools support additional options such as (which forces a hard line wrap after the specified number of characters) (supported by Emacs, Vim, Atom, and several others) ==Implementation== Many popular editors have adopted support of the specification. The GitHub page for the project has libraries written in Go programing language, C programing language, and Python programming language, and there is a Node.JS library as well. There is a comprehensive listing of editors available on the project site. ===Editors reported to work without use of a plug-in=== Gitea, GitHub, IntelliJ IDEA, PyCharm, BBEdit, Xcode 16, Kate, GNU Emacs , Komodo, Visual Studio, Vim/Neovim, and editors by JetBrains. ===Editors which require a plug-in=== Some editors require installation of a plug-in: Eclipse IDE, Atom, Geany, JEdit, Notepad++, NetBeans, Visual Studio Code, Sublime Text ===Build environments which require a plug-in=== Apache Ant, Gradle, Apache Maven ===Editors which don't support EditorConfig=== There is no list maintained of all the various text editors or IDEs which do not support EditorConfig (e.g. Spyder IDE has had support mentioned in the past, but does not seem to yet include it). ===Other software development tools which implement EditorConfig=== Prettier ==References==

References

  1. Painless Code Formatting with EditorConfig · retrieved 2024-04-23 · rev 1373291139
    Cite this reference

    MLA "Painless Code Formatting with EditorConfig." Hombergs, Tom (2021-02-15). 2024-04-23. https://reflectoring.io/painless-code-formatting-with-editor-config/. Accessed 24 November 2026.

    Chicago "Painless Code Formatting with EditorConfig." Hombergs, Tom (2021-02-15). 2024-04-23. https://reflectoring.io/painless-code-formatting-with-editor-config/.

    APA Hombergs, Tom (2021-02-15). (2024). Painless Code Formatting with EditorConfig. Retrieved November 24, 2026, from https://reflectoring.io/painless-code-formatting-with-editor-config/

  2. Editorconfig/Editorconfig-core-go · retrieved 2026-11-17 · rev 1373291139
    Cite this reference

    MLA "Editorconfig/Editorconfig-core-go." 2026-11-17. https://github.com/editorconfig/editorconfig-core-go. Accessed 24 November 2026.

    Chicago "Editorconfig/Editorconfig-core-go." 2026-11-17. https://github.com/editorconfig/editorconfig-core-go.

    APA encyclopegia.org. (2026). Editorconfig/Editorconfig-core-go. Retrieved November 24, 2026, from https://github.com/editorconfig/editorconfig-core-go

  3. Editorconfig/Editorconfig-core-c · retrieved 2026-11-17 · rev 1373291139
    Cite this reference

    MLA "Editorconfig/Editorconfig-core-c." 2026-11-17. https://github.com/editorconfig/editorconfig-core-c. Accessed 24 November 2026.

    Chicago "Editorconfig/Editorconfig-core-c." 2026-11-17. https://github.com/editorconfig/editorconfig-core-c.

    APA encyclopegia.org. (2026). Editorconfig/Editorconfig-core-c. Retrieved November 24, 2026, from https://github.com/editorconfig/editorconfig-core-c

  4. Editorconfig/Editorconfig-core-py · retrieved 2026-11-17 · rev 1373291139
    Cite this reference

    MLA "Editorconfig/Editorconfig-core-py." 2026-11-17. https://github.com/editorconfig/editorconfig-core-py. Accessed 24 November 2026.

    Chicago "Editorconfig/Editorconfig-core-py." 2026-11-17. https://github.com/editorconfig/editorconfig-core-py.

    APA encyclopegia.org. (2026). Editorconfig/Editorconfig-core-py. Retrieved November 24, 2026, from https://github.com/editorconfig/editorconfig-core-py

  5. Editorconfig · retrieved 2026-11-17 · rev 1373291139
    Cite this reference

    MLA "Editorconfig." 2026-11-17. https://www.npmjs.com/package/editorconfig. Accessed 24 November 2026.

    Chicago "Editorconfig." 2026-11-17. https://www.npmjs.com/package/editorconfig.

    APA encyclopegia.org. (2026). Editorconfig. Retrieved November 24, 2026, from https://www.npmjs.com/package/editorconfig

  6. Projects Using EditorConfig · retrieved 2024-04-23 · rev 1373291139
    Cite this reference

    MLA "Projects Using EditorConfig." 2024-04-23. https://github.com/editorconfig/editorconfig/wiki/Projects-Using-EditorConfig. Accessed 24 November 2026.

    Chicago "Projects Using EditorConfig." 2024-04-23. https://github.com/editorconfig/editorconfig/wiki/Projects-Using-EditorConfig.

    APA encyclopegia.org. (2024). Projects Using EditorConfig. Retrieved November 24, 2026, from https://github.com/editorconfig/editorconfig/wiki/Projects-Using-EditorConfig

  7. EditorConfig | IntelliJ IDEA · retrieved 2026-11-17 · rev 1373291139
    Cite this reference

    MLA "EditorConfig | IntelliJ IDEA." 2026-11-17. https://www.jetbrains.com/help/idea/editorconfig.html. Accessed 24 November 2026.

    Chicago "EditorConfig | IntelliJ IDEA." 2026-11-17. https://www.jetbrains.com/help/idea/editorconfig.html.

    APA encyclopegia.org. (2026). EditorConfig | IntelliJ IDEA. Retrieved November 24, 2026, from https://www.jetbrains.com/help/idea/editorconfig.html

  8. GNU Emacs NEWS, New Modes and Packages in Emacs 30.1 · retrieved 2025-07-15 · rev 1373291139
    Cite this reference

    MLA "GNU Emacs NEWS, New Modes and Packages in Emacs 30.1." "GNU Emacs NEWS, New Modes and Packages in Emacs 30. 2025-07-15. https://www.gnu.org/software/emacs/news/NEWS.30.1. Accessed 24 November 2026.

    Chicago "GNU Emacs NEWS, New Modes and Packages in Emacs 30.1." "GNU Emacs NEWS, New Modes and Packages in Emacs 30. 2025-07-15. https://www.gnu.org/software/emacs/news/NEWS.30.1.

    APA "GNU Emacs NEWS, New Modes and Packages in Emacs 30. (2025). GNU Emacs NEWS, New Modes and Packages in Emacs 30.1. Retrieved November 24, 2026, from https://www.gnu.org/software/emacs/news/NEWS.30.1

  9. EditorConfig - IntelliJ IDEs Plugin | Marketplace · retrieved 2026-11-17 · rev 1373291139
    Cite this reference

    MLA "EditorConfig - IntelliJ IDEs Plugin | Marketplace." 2026-11-17. https://plugins.jetbrains.com/plugin/7294-editorconfig/. Accessed 24 November 2026.

    Chicago "EditorConfig - IntelliJ IDEs Plugin | Marketplace." 2026-11-17. https://plugins.jetbrains.com/plugin/7294-editorconfig/.

    APA encyclopegia.org. (2026). EditorConfig - IntelliJ IDEs Plugin | Marketplace. Retrieved November 24, 2026, from https://plugins.jetbrains.com/plugin/7294-editorconfig/

  10. EditorConfig for VS Code - Visual Studio Marketplace · retrieved 2026-11-17 · rev 1373291139
    Cite this reference

    MLA "EditorConfig for VS Code - Visual Studio Marketplace." 2026-11-17. https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig. Accessed 24 November 2026.

    Chicago "EditorConfig for VS Code - Visual Studio Marketplace." 2026-11-17. https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig.

    APA encyclopegia.org. (2026). EditorConfig for VS Code - Visual Studio Marketplace. Retrieved November 24, 2026, from https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig

  11. Add support for .editorconfig #2464 · retrieved 2026-11-17 · rev 1373291139
    Cite this reference

    MLA "Add support for .editorconfig #2464." "Add support for. 2026-11-17. https://github.com/editorconfig/editorconfig/wiki/FAQ. Accessed 24 November 2026.

    Chicago "Add support for .editorconfig #2464." "Add support for. 2026-11-17. https://github.com/editorconfig/editorconfig/wiki/FAQ.

    APA "Add support for. (2026). Add support for .editorconfig #2464. Retrieved November 24, 2026, from https://github.com/editorconfig/editorconfig/wiki/FAQ

  12. Define consistent coding styles with EditorConfig · retrieved 2026-11-17 · rev 1373291139
    Cite this reference

    MLA "Define consistent coding styles with EditorConfig." 2026-11-17. https://learn.microsoft.com/en-us/visualstudio/ide/create-portable-custom-editor-options?view=vs-2022. Accessed 24 November 2026.

    Chicago "Define consistent coding styles with EditorConfig." 2026-11-17. https://learn.microsoft.com/en-us/visualstudio/ide/create-portable-custom-editor-options?view=vs-2022.

    APA encyclopegia.org. (2026). Define consistent coding styles with EditorConfig. Retrieved November 24, 2026, from https://learn.microsoft.com/en-us/visualstudio/ide/create-portable-custom-editor-options?view=vs-2022

  13. 'EDITORCONFIG' environmental variable for global config · Issue #465 · editorconfig/Editorconfig · retrieved 2026-11-17 · rev 1373291139
    Cite this reference

    MLA "'EDITORCONFIG' environmental variable for global config · Issue #465 · editorconfig/Editorconfig." 2026-11-17. https://github.com/editorconfig/editorconfig/issues/465. Accessed 24 November 2026.

    Chicago "'EDITORCONFIG' environmental variable for global config · Issue #465 · editorconfig/Editorconfig." 2026-11-17. https://github.com/editorconfig/editorconfig/issues/465.

    APA encyclopegia.org. (2026). 'EDITORCONFIG' environmental variable for global config · Issue #465 · editorconfig/Editorconfig. Retrieved November 24, 2026, from https://github.com/editorconfig/editorconfig/issues/465

  14. Editor — Spyder 5 documentation · retrieved 2026-11-17 · rev 1373291139
    Cite this reference

    MLA "Editor — Spyder 5 documentation." 2026-11-17. https://docs.spyder-ide.org/current/panes/editor.html. Accessed 24 November 2026.

    Chicago "Editor — Spyder 5 documentation." 2026-11-17. https://docs.spyder-ide.org/current/panes/editor.html.

    APA encyclopegia.org. (2026). Editor — Spyder 5 documentation. Retrieved November 24, 2026, from https://docs.spyder-ide.org/current/panes/editor.html

  15. How I Setup ESLint, Prettier, and EditorConfig for Static Sites · retrieved 2024-04-23 · rev 1373291139
    Cite this reference

    MLA "How I Setup ESLint, Prettier, and EditorConfig for Static Sites." 2024-04-23. https://dev.to/npranto/how-i-setup-eslint-prettier-and-editorconfig-for-static-sites-33ep. Accessed 24 November 2026.

    Chicago "How I Setup ESLint, Prettier, and EditorConfig for Static Sites." 2024-04-23. https://dev.to/npranto/how-i-setup-eslint-prettier-and-editorconfig-for-static-sites-33ep.

    APA encyclopegia.org. (2024). How I Setup ESLint, Prettier, and EditorConfig for Static Sites. Retrieved November 24, 2026, from https://dev.to/npranto/how-i-setup-eslint-prettier-and-editorconfig-for-static-sites-33ep

  16. EditorConfig · retrieved 2026-11-17 · rev 1373291139
    Cite this reference

    MLA "EditorConfig." 2026-11-17. https://twitter.com/EditorConfig. Accessed 24 November 2026.

    Chicago "EditorConfig." 2026-11-17. https://twitter.com/EditorConfig.

    APA encyclopegia.org. (2026). EditorConfig. Retrieved November 24, 2026, from https://twitter.com/EditorConfig

  17. What is .editorconfig - EditorConfig full Guide · retrieved 2026-11-17 · rev 1373291139
    Cite this reference

    MLA "What is .editorconfig - EditorConfig full Guide." The Codeholic. 2026-11-17. https://www.youtube.com/watch?v=EvGXkL31CpI. Accessed 24 November 2026.

    Chicago "What is .editorconfig - EditorConfig full Guide." The Codeholic. 2026-11-17. https://www.youtube.com/watch?v=EvGXkL31CpI.

    APA The Codeholic. (2026). What is .editorconfig - EditorConfig full Guide. Retrieved November 24, 2026, from https://www.youtube.com/watch?v=EvGXkL31CpI

  18. Configuration files for code analysis rules · retrieved 2026-11-17 · rev 1373291139
    Cite this reference

    MLA "Configuration files for code analysis rules." 2026-11-17. https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/configuration-files. Accessed 24 November 2026.

    Chicago "Configuration files for code analysis rules." 2026-11-17. https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/configuration-files.

    APA encyclopegia.org. (2026). Configuration files for code analysis rules. Retrieved November 24, 2026, from https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/configuration-files

  19. EditorConfig · retrieved 2026-11-17 · rev 1373291139
    Cite this reference

    MLA "EditorConfig." 2026-11-17. https://editorconfig.org/. Accessed 24 November 2026.

    Chicago "EditorConfig." 2026-11-17. https://editorconfig.org/.

    APA encyclopegia.org. (2026). EditorConfig. Retrieved November 24, 2026, from https://editorconfig.org/

  20. EditorConfig Specification · retrieved 2026-11-17 · rev 1373291139
    Cite this reference

    MLA "EditorConfig Specification." 2026-11-17. https://spec.editorconfig.org/. Accessed 24 November 2026.

    Chicago "EditorConfig Specification." 2026-11-17. https://spec.editorconfig.org/.

    APA encyclopegia.org. (2026). EditorConfig Specification. Retrieved November 24, 2026, from https://spec.editorconfig.org/

  21. Code style options and code cleanup - Visual Studio (Windows) · retrieved 2026-11-17 · rev 1373291139
    Cite this reference

    MLA "Code style options and code cleanup - Visual Studio (Windows)." 2026-11-17. https://learn.microsoft.com/en-us/visualstudio/ide/code-styles-and-code-cleanup?view=vs-2022#code-styles-in-editorconfig-files. Accessed 24 November 2026.

    Chicago "Code style options and code cleanup - Visual Studio (Windows)." 2026-11-17. https://learn.microsoft.com/en-us/visualstudio/ide/code-styles-and-code-cleanup?view=vs-2022#code-styles-in-editorconfig-files.

    APA encyclopegia.org. (2026). Code style options and code cleanup - Visual Studio (Windows). Retrieved November 24, 2026, from https://learn.microsoft.com/en-us/visualstudio/ide/code-styles-and-code-cleanup?view=vs-2022#code-styles-in-editorconfig-files

  22. What is .editorconfig ? · retrieved 2026-11-17 · rev 1373291139
    Cite this reference

    MLA "What is .editorconfig ?." " "What is. 2026-11-17. https://www.geeksforgeeks.org/what-is-editorconfig/. Accessed 24 November 2026.

    Chicago "What is .editorconfig ?." " "What is. 2026-11-17. https://www.geeksforgeeks.org/what-is-editorconfig/.

    APA " "What is. (2026). What is .editorconfig ?. Retrieved November 24, 2026, from https://www.geeksforgeeks.org/what-is-editorconfig/

Cite this article

MLA

"EditorConfig." encyclopegia.org, 2026, https://encyclopegia.org/wiki/editorconfig. Accessed 24 November 2026.

Chicago

"EditorConfig." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/editorconfig.

APA

encyclopegia.org. (2026). EditorConfig. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/editorconfig

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1373291139 · 0.5 · snapshot enwiki-001373291139

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.