Microsoft Learn
learn.microsoft.com › en-us › visualstudio › ide › create-portable-custom-editor-options
Define Consistent Coding Styles with EditorConfig - Visual Studio (Windows) | Microsoft Learn
When you add an EditorConfig file to your project or codebase, Visual Studio formats any new lines of code you write according to the EditorConfig file settings. However, Visual Studio doesn't convert existing styles to the new ones until you format the document or run Code Cleanup.
HackerNoon
hackernoon.com › how-to-set-up-a-formatting-standard-in-your-code-editor-and-why-you-should
How to Set up a Formatting Standard in Your Code Editor (And Why You Should!) | HackerNoon
January 8, 2023 - # Top-most EditorConfig file. root = true # Section for C# files # All rules below apply only to .cs files [*.cs] #### Core EditorConfig Options #### # Indentation and spacing indent_style = space indent_size = 4 # New line preferences end_of_line = crlf insert_final_newline = false trim_trailing_whitespace = true # Charset preference charset = utf-8
00:36
Format Files on Save in Visual Studio - YouTube
06:12
EditorConfig: The Best Step Towards Consistent Coding Style - YouTube
Editorconfig In Visual Studio In 10 Minutes or Less
17:25
What is .editorconfig - EditorConfig full Guide - YouTube
07:54
#EditorConfig for VS Code and other Editors - YouTube
01:30
VS Code tips — Format on save - YouTube
file format for defining coding styles (that is supported by various text editor plugins)
Factsheet
EditorConfig
editorconfig.org
EditorConfig
EditorConfig files use an INI format that is compatible with the format used by Python configparser Library, but [ and ] are allowed in the section names. The section names are filepath globs (case sensitive), similar to the format accepted by gitignore. Only forward slashes (/, not backslashes) ...
Microsoft Learn
learn.microsoft.com › en-us › community › content › how-to-enforce-dotnet-format-using-editorconfig-github-actions
How to enforce .NET code format using EditorConfig and GitHub Actions | Microsoft Learn
To create an EditorConfig file, you have a few options: Open your .NET project/solution in Visual Studio 2022. Click Tools > Options > Text Editor > C# > Code Style > General. Then click Generate .editorconfig file from settings.
Medium
medium.com › @benjaminabt › auto-format-your-code-on-save-with-visual-studio-6ff479fe2182
Auto Format your Code on save with Visual Studio | by BEN ABT | Medium
November 27, 2024 - +---------------------------------------+----------------------------------------------------------------------------------------------------+ | Option | Description | +---------------------------------------+----------------------------------------------------------------------------------------------------+ | Add accessibility modifiers | Adds missing modifiers such as public or private | | Order modifiers | Sorts the modifiers in the correct order | | Remove unnecessary casts | Removes unnecessary casts that make the code more cumbersome to read | | Format document | Formats the document co
Top answer 1 of 6
112
The problem I had was that I added the extension EditorConfig.EditorConfig to my VS Code, but didn't install the npm package for it. It's not enough to add the extension only to your VS Code, you have also to install the package, so it could run.
I installed the npm package globally like this: npm install -g editorconfig
After that I added the extension and enabled it. Now it works perfectly.
Required npm package: https://www.npmjs.com/package/editorconfig
Required VS Code extension: https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig
2 of 6
12
In addition all of the above I also needed to turn on the Editor Format on Save option.
{
"editor.formatOnSave": true
}
Visual Studio Marketplace
marketplace.visualstudio.com › items
Format document on Save - Visual Studio Marketplace
Extension for Visual Studio - Enables auto formatting of the code when you save a file. Visual Studio supports auto formatting of the code with the CTRL+E,D or CTRL+E,F key shortcuts but with this extension the VS command 'Format Document' is ...
Visual Studio Marketplace
marketplace.visualstudio.com › items
EditorConfig - Visual Studio Marketplace
April 8, 2026 - Extension for Visual Studio Code - EditorConfig Support for Visual Studio Code
Editorconfig
docs.editorconfig.org › en › master › editorconfig-format.html
EditorConfig: EditorConfig File Format
EditorConfig files use an INI format that is compatible with the format used by Python ConfigParser Library, but [ and ] are allowed in the section names. The section names are filepath globs, similar to the format accepted by gitignore. Forward slashes (/) are used as path separators and ...
GitHub
github.com › editorconfig › editorconfig-vscode › issues › 78
Using "Format Code" feature ignores editorconfig settings after updating VS Code to 1.6.0 · Issue #78 · editorconfig/editorconfig-vscode
October 10, 2016 - You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert · {{ message }} There was an error while loading. Please reload this page. editorconfig / editorconfig-vscode Public · Notifications · You must be signed in to change notification settings · Fork 140 · Star 1.4k · New issueCopy link · New issueCopy link · Closed · Closed · Using "Format Code" feature ignores editorconfig settings after updating VS Code to 1.6.0#78 ·
Author: editorconfig
Editorconfig
spec.editorconfig.org › index.html
EditorConfig Specification — EditorConfig Specification 0.17.2 documentation
It is equivalent to an .editorconfig file that contains only one line, root = false. Changed in version 0.15.0. A ; or # anywhere other than at the beginning of a line does not start a comment, but is part of the text of that line. For example: ... This specification does not define any “escaping” mechanism for ; or # characters. ... The EditorConfig file format formerly allowed the use of ; and # after the beginning of the line to mark the rest of a line as comment.