-
Notifications
You must be signed in to change notification settings - Fork 199
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
Object initializer block indented one more level that in plain .cs file #7933
Comments
Note: The formatting issue here is a difference between Roslyn and Razor, but it is worth noting it is stable, unlike previous issues in this area, where repeated formats would cause constant changes. |
This is a massive pain for me as I use automatic formatting when typing. I have to disable it but it then means I cant use the feature within other language files eg |
It's been over a year. Shouldn't it be easy to fix this issue? |
If it was easy, I would have fixed it, I promise! |
@davidwengier Thanks for the update on this, will this be available to try out in the next VS preview and is there a release timeframe on it? |
@KieranDevvs It will be available in the first preview after 17.13 is fully released. Sorry, I can't share dates. It's currently behind a feature flag, but we're working on getting it enabled for everyone, so it will be opt-out, as we're pretty confident there won't be regressions, but sadly the Razor usage in VS Preview versions is pretty low. |
This issue has been moved from a ticket on Developer Community.
There is very often wrong automatic indentation in C# code in razor files. If I open up an initializer like so :
It very often ends up that way :
This only happens in razor files.
Original Comments
Feedback Bot on 14/11/2022, 06:02 PM:
(private comment, text removed)
Original Solutions
(no solutions)
The text was updated successfully, but these errors were encountered: