Applies a project's .editorconfig settings to VS Code
open sourceMITfree
The EditorConfig project's own extension for VS Code. When a file is opened or focused, it reads the .editorconfig files that apply to it (through the editorconfig npm package, one of EditorConfig's cores) and overrides VS Code's user and workspace settings with them: indent style and size, tab width and character set, plus line endings, a final newline and trimmed trailing whitespace, which are applied when the file is saved. It can also generate a new .editorconfig file from the Explorer's context menu. MIT licensed.
Problems it solves
- make VS Code follow the indentation and line endings in our .editorconfig
- keep tabs vs spaces consistent across a team that uses different editors
- VS Code ignores the project's .editorconfig file
Features
- applies indent_style, indent_size, tab_width and charset from .editorconfig files
- applies end_of_line, insert_final_newline and trim_trailing_whitespace on save
- overrides user and workspace settings per file
- Generate .editorconfig from the Explorer context menu
- uses the editorconfig npm core
Limitations
Alternatives
The same job
These do what EditorConfig for VS Code does.
- rustfmt A tool for formatting Rust code according to style guidelines
