razor
razor copied to clipboard
formatting of @code / @{} doesn't support editorconfig settings
Need more info on details before can be triaged. For instance, is this about tabs/spaces or C# formatting options etc.
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
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)?