razor icon indicating copy to clipboard operation
razor copied to clipboard

formatting of @code / @{} doesn't support editorconfig settings

Open mikadumont opened this issue 3 years ago • 3 comments

mikadumont avatar Oct 14 '21 20:10 mikadumont

Need more info on details before can be triaged. For instance, is this about tabs/spaces or C# formatting options etc.

NTaylorMullen avatar Oct 14 '21 21:10 NTaylorMullen

There are two issues blocking the adoption of editorconfig in Razor today.

The first is a bug in the platform where the correct tabs/spaces settings aren't being sent along with formatting requests: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1408465

The second is a larger work item to support workspace/configuration requests. This will allow for broader editorconfig support outside of tabs/spaces: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1408466

allisonchou avatar Oct 21 '21 22:10 allisonchou

This is an important topic because it actually causes problems with our GIT integration because the razor formatting does not adhere to editorconfig settings and therefore depends on user's settings, causing problems with git-diff due to the different formatting applied.

Does it takes long to be fixed? This is actually one of the stopping point that prevent us to move to VS 2022 Meanwhile does exists a valid workaround for the problem (other than forcing user to set proper formatting settings in visual studio)?

MithrilMan avatar Feb 11 '22 10:02 MithrilMan