-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add editorconfig support in Razor #4406
Comments
It's not even just editorconfig, but also just normal C# naming style settings |
Is this related to "Code Cleanup on Save" (https://devblogs.microsoft.com/visualstudio/bringing-code-cleanup-on-save-to-visual-studio-2022-17-1-preview-2/) not working for Razor files? VS's "Format Document" command formats a Razor file, but saving a Razor file does nothing even with "Code Cleanup on Save" enabled. (I'm using VS 17.2.0) |
This also related to https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1408493 (possibly a duplicate issue). |
Currently awaiting work on the Editor side: |
Any update for the .editorconfig support ? |
Any update on .editorconfig support? |
No updates I'm afraid, we're still blocked on the VS editor fixing internal issue 1408493, which has been linked a few times here. I updated the main description of the issue with the status. We are hopeful that the editor team will fix this in the next few months, but given how old this issue is, it would be pretty foolish of me to promise that (and of you to believe it 😛) |
I'm assuming this will be looked at in conjunction with the compiler rewrite that's underway? (At least the foundations for supporting it so that it can be supported quickly thereafter) |
Any chance of getting this sorted out in the .NET 9 timeframe? |
Adding one more issue for reference: https://developercommunity.visualstudio.com/t/OptionsText-EditorCTab-setting/10377123 The tab size and indent size cannot be individually set in visual studio options - the Razor (ASP.NET Core) tab settings override to the C# tab settings - so that's also not a workaround for missing .editorconfig support in Razor. |
Tracking issue on the Razor side for adding editorconfig support in Razor.
Will likely need to discuss with Platform since the bulk of the work may need to be done on their side.
See 1) in: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1388770/ for original VSTS issue.
There are a few different aspects to .editorconfig support, with different statuses and priorities:
Current status:
indent_size
,indent_style
etc. generic formatting properties, as per the original linked issue aboveThe text was updated successfully, but these errors were encountered: