ReSharper is inserting a space after the @ sign on directives when reformatting Razor markup

Completed

Visual Studio 2019 16.5.5 (16.5.30104.148)
ReSharper Ultimate 2020.1.3 (2020.1.20200515.124536)

I've been searching the ReSharper code formatting options fruitlessly to find the setting that is causing this. I have narrowed it down to ReSharper because when it is suspended the issue does not appear. Given this code:

@{
    if (this.request.Steps != null)
    {
        <InputText @bind-Value="this.request.WorkOrderNo"></InputText>
        @someValue
    }
}

If I do anything that triggers a reformat of this code block, say delete and then type in the last "}", ReSharper changes the code to this:

@{
    if (this.request.Steps != null)
    {
        <InputText @ bind-Value="this.request.WorkOrderNo"></InputText>
        @someValue
    }
}

In case it's not obvious, ReSharper is inserting a space between "@" and "bind-Value" which breaks that code. Can anyone point me in the direction of what code formatting option is causing this? The odd thing is, it only does this on the @ directives within tags. Thanks.

3 comments
Comment actions Permalink

Hello Darryl,

 

Sorry for the delay in responding.

Could you please provide all dotSettings files via ReSharper | Manage Options | right-click on each layer | Export to file. You can share them using "Submit a request" form at the top of the page.

Thanks in advance.

0
Comment actions Permalink

Thanks for the reply. It looks like this has already been reported and has an issue assigned at https://youtrack.jetbrains.com/issue/RSRP-476091.

0
Comment actions Permalink

Thank you for letting me know, Darryl.

0

Please sign in to leave a comment.