Skip to content

Razor formatting not stable in VS 17.4 Preview 1.0 #11521

@seangwright

Description

@seangwright

I watched the recent community standup stream and wanted to do my part to help resolve the issues I regularly have with Razor (both in VS and VS Code).

I installed VS 17.14.0 Preview 1.0 and made sure the experimental Razor features were enabled.

I then attempted to format a Razor file and experienced the classic "everything shifts to the right/left" each time I format. I thought this type of thing was supposed to be fixed with the new formatter? Maybe I misunderstood.

vs-17-4-preview-razor-formatting-broken.webm

I'm using ctrl+k, ctrl+d to format.

Also, it's very difficult to find documentation about how VS/VS Code should be configured to either

  1. Try these experimental features as they are being worked on
  2. Configure the IDEs correctly once the features are released.

Here's some specific questions

  1. Is the new formatter available in preview in VS Code? (Normally I don't use VS because I need to be cross-platform)
  2. If so, how do I enable it?
  3. If so, where is it documented?
  4. Is it delivered as part of the C# extension in VS Code or the DevKit extension?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions