Adze
Adze

Reputation: 164

Fold Razor Comments in VS2012

I have large blocks of code in .cshtml file that are commented using the following syntax.

@*
    ...
*@

But Visual Studio doesn't show code folding option for this block. Is there a way to do so?

Upvotes: 1

Views: 54

Answers (1)

SomeRandomName
SomeRandomName

Reputation: 603

You could have a normal html comment around this as one solution. Might not be the most elegant solution but it woorks.

<!--@*

    ................

*@-->

Upvotes: 1

Related Questions