I think I found the solution. When I create the .editorconfig file with right-click on the folder structure sidebar in Visual Studio Code and select Generate .editorconfig (thus letting the plugin to create it), it works.

Click on the empty area below the files:

Answer from croraf on Stack Overflow
🌐
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
🌐
GitHub
github.com › editorconfig › editorconfig-vscode
GitHub - editorconfig/editorconfig-vscode: EditorConfig extension for Visual Studio Code · GitHub
EditorConfig extension for Visual Studio Code. Contribute to editorconfig/editorconfig-vscode development by creating an account on GitHub.
Author: editorconfig

I think I found the solution. When I create the .editorconfig file with right-click on the folder structure sidebar in Visual Studio Code and select Generate .editorconfig (thus letting the plugin to create it), it works.

Click on the empty area below the files:

Answer from croraf on Stack Overflow
🌐
GitHub
github.com › editorconfig › editorconfig-vscode › releases
Releases · editorconfig/editorconfig-vscode
EditorConfig extension for Visual Studio Code. Contribute to editorconfig/editorconfig-vscode development by creating an account on GitHub.
Author: editorconfig
🌐
EditorConfig
editorconfig.org
EditorConfig
EditorConfig is a file format and collection of text editor plugins for maintaining consistent coding styles between different editors and IDEs.
🌐
Reddit
reddit.com › r/vscode › a question regarding vscode + editorconfig
r/vscode on Reddit: A Question Regarding VSCode + EditorConfig
July 29, 2023 -

I'm confused about something that seems so basic...

Let's say you're working on a TypeScript project with a prettier config set to `tabWidth: 4` (the team's preference). In addition to that, I have an `.editorconfig` file that specifies a tab width of 2 spaces (my preference). If everything is configured correctly, when I open a `.ts` file that has been saved with a tab width of 4, should EditorConfig _automatically_ reformat that file to my desired tab width? If so - it's not doing that.

Isn't one of the benefits of EditorConfig supposed to be that it allows individual developers to see their desired tab, etc... preferences in their IDE while allowing them to save their work in a format that continues to respect the team's preference?

🌐
Devsense
docs.devsense.com › vscode › editor › editorconfig
EditorConfig - PHP Tools - Documentation
The PHP extension for VS Code leverages the .editorconfig file to apply consistent formatting rules to your PHP code.
Find elsewhere
🌐
JetBrains
jetbrains.com › help › resharper-vscode › Using_EditorConfig.html
Use EditorConfig | ReSharper for Visual Studio Code Documentation
As EditorConfig convention suggests, ReSharper for Visual Studio Code applies code styles defined in files named .editorconfig in the directory of the current file and in all its parent directories until it reaches the root directory or finds an EditorConfig file with root=true.
🌐
GitHub
github.com › editorconfig › editorconfig-vscode › issues › 360
EditorConfig doesn't work well in VSCode (in specific files) · Issue #360 · editorconfig/editorconfig-vscode
January 6, 2024 - root = true [*] charset = utf-8 end_of_line = crlf [*.{c, cpp, c++, cc, rc, cxx, h, hpp, h++, hh, rh, hxx, i, ii, ipp, ixx, tpp, txx, inl, fx, hlsl}] indent_style = tab indent_size = 4 insert_final_newline = true trim_trailing_whitespace = true # Formatting properties in C/C++ extension (locally) #cpp_indent_braces = false #cpp_new_line_before_catch = true #cpp_new_line_before_else = true #cpp_new_line_before_while_in_do_while = true #cpp_space_before_comma = false #cpp_space_after_comma = true [*.md, mdoc, mdown, mkd, mkdoc, mdtext, mdtxt, markdown, rst] indent_style = space indent_size = 4 insert_final_newline = true trim_trailing_whitespace = true [.vscode/*.json] indent_style = tab indent_size = 2 insert_final_newline = true [.github/workflows/*.{yml, yaml}] indent_style = space indent_size = 2 insert_final_newline = true
Author: editorconfig
🌐
Visual Studio Code
code.visualstudio.com › docs › csharp › formatting-linting
Formatting and Linting
November 3, 2021 - EditorConfig (.editorconfig) files are supported with the EditorConfig for VS Code extension, letting you customize formatting options in your C# project.
🌐
Visual Studio Marketplace
marketplace.visualstudio.com › items
EditorConfig Editor - Visual Studio Marketplace
Extension for Visual Studio Code - A more visual editor for .editorconfig files
🌐
ASP.NET Hacker
asp.net-hacker.rocks › 2020 › 01 › 13 › editorconfig.html
Using the .editorconfig in VS2019 and VSCode
January 13, 2020 - If VS2019 finds an .editorconfig it will use it immediately and it will check your code on every code change. If VS2019 finds an .editorconfig in your solution, it will tell you about it and propose to add it to a solution folder to make it easier accessible for you in the editor. In VSCode you need to install an add-in called EditorConfig.
🌐
GitHub
github.com › microsoft › vscode-docs › blob › main › .editorconfig
vscode-docs/.editorconfig at main · microsoft/vscode-docs
Public documentation for Visual Studio Code. Contribute to microsoft/vscode-docs development by creating an account on GitHub.
Author: microsoft
🌐
Daniel's Programming Blog
blog.danskingdom.com › Visual-Studio-has-a-built-in-EditorConfig-editor
Visual Studio has a built-in EditorConfig editor - Daniel Schroeder’s Programming Blog
September 20, 2024 - Somehow I missed it, but for years Visual Studio has had a built-in EditorConfig editor. I would typically edit my .editorconfig file in VS Code using just text, but Visual Studio’s editor provides a nice UI for it so you don’t have to remember all the setting names.
🌐
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
EditorConfig file settings let you maintain consistent coding styles and conventions in a codebase, regardless of the editor or IDE you use. Some coding styles you can control are indent style, tab width, end-of-line characters, and encoding.
🌐
GitHub
github.com › microsoft › vscode-editorconfig
GitHub - microsoft/vscode-editorconfig: [DEPRECATED] .editorconfig extension for Visual Studio Code · GitHub
May 21, 2018 - [DEPRECATED] .editorconfig extension for Visual Studio Code - GitHub - microsoft/vscode-editorconfig: [DEPRECATED] .editorconfig extension for Visual Studio Code
Starred by 77 users
Forked by 27 users
Languages: TypeScript
🌐
Medium
medium.com › @gabrieletronchin › tips-tricks-coding-styles-on-visual-studio-with-editorconfig-7952d202bfad
Tips & Tricks — Coding styles on Visual Studio with EditorConfig | by Gabriele Tronchin | Medium
October 28, 2024 - In this article, we will explore the EditorConfig file, a tool you can add to your projects to control coding style and maintain consistent code formatting.
🌐
GitHub
github.com › karenyov › vscode-editor-config
GitHub - karenyov/vscode-editor-config: Editor Config - Visual Studio Code
Editor Config - Visual Studio Code. Contribute to karenyov/vscode-editor-config development by creating an account on GitHub.
Author: karenyov