Skip to content

Newly added .editorconfig only applied after reloading files #15003

@rchande

Description

@rchande

Create a new C# console app.
Open program.cs
Right click -> add new item -> text file.
Rename the file to .editorconfig
Paste the following into the file and save

[*.cs]
indent_style = tab
indent_size = 10

Switch to the program.cs tab and invoke Edit.FormatDocument.

Expected:
The document is formatted to use tabs and a wider indent.
Actual: Nothing happens
After closing and reopening program.cs, Edit.FormatDocument applies the new formattnig settings.

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions