Skip to content

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

Open
@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


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:

<some razor markup>

@code {
  void NewMethod() <Shift+Enter> 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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    author: migration bot 🤖The issue was created by a issue mover bot. The author may not be the actual authorfeature requestLarge improvement request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions