Skip to content

Razor formatting in vs code adds \n to each code line. #5589

@vchirikov

Description

@vchirikov

Describe the bug:

bug

Razor formatting in vs code adds \n to each code line.

I can't reproduce this in a small repo, but if you want to check something I can help with it

Version used:

Razor.VSCode version 6.0.0-preview.5.21358.6
ms-dotnettools.csharp-1.23.16
omnisharp 1.37.17-beta.6

To reproduce:
Steps to reproduce the behavior:

  1. Create razor file
  2. Enable razor formatting ( "razor.format.enable": true, "[aspnetcorerazor]": { "editor.defaultFormatter": "ms-dotnettools.csharp" )
  3. Use format in a razor file

*Expected behavior:

Code is formatted

Actual behavior:

Formatting adds line endings to each line

#4358

cc: @NTaylorMullen

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingvscode

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions