dotnet / dotnet/roslyn

Smart Break Line (Shift+Enter) does not work in Razor editor in Blazor

Open
#85,528 0 comments 0 reactions 0 assignees View on GitHub
Area-Razor Feature Request
Dominant language
C#
Stars
20.7k
Forks
4.3k
PR merge metrics
PR metrics pending

Description

_This issue has been moved from [a ticket on Developer Community](https://developercommunity.visualstudio.com/t/Smart-Break-Line-ShiftEnter-does-not-/10654028)._

---
In Razor @code block pressing Shift+Enter after method name does NOT insert pair of curly braces as it is common in .cs files.
A productivity feature called "Smart Break Line".

Example:
File: Home.razor:

```

@code {
void NewMethod() here should insert vertically aligned pair of curly braces
}
```

VS 2022 17.9.6

---
### Original Comments

#### Feedback Bot on 5/7/2024, 06:14 PM:

(private comment, text removed)
#### Artak Mkrtchyan [MSFT] on 5/15/2024, 08:29 AM:

(private comment, text removed)
#### Artak Mkrtchyan [MSFT] on 5/15/2024, 08:29 AM:

(private comment, text removed)
#### Feedback Bot on 5/15/2024, 06:30 PM:

(private comment, text removed)

---
### Original Solutions
(no solutions)

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.