dotnet / dotnet/vscode-csharp

IMPORTANT code format bug for razor pages!!!

Open
#5,513 0 comments 0 reactions 0 assignees View on GitHub
OmniSharp Razor
Dominant language
TypeScript
Stars
3.1k
Forks
737
Avg merge
17h 56m
Merged PRs (30d)
21

Description

before code format:

```cshtml
@page "/Test"

@{
string text = "abc" + " " + "def";
}

@text

```

after code format:

```cshtml
@page "/Test"

@{
string text = "abc" + " " + "def";
}

@text

```

The space shouldn't be formated!

image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.