Pasting within Razor reformats lines to inserts a space - breaking HtmlHelper calls

Visual Studio 2013 (Version 12.0.21005.1 REL)
ReSharper 8.1 (Build
MVC 5 app targeting Framework 4.5.1
WebPages version


Hi :D

If I start with this:

 @Html.TextBoxFor(m => m.WordCount, new { @class = "form-control" }) 

and paste, for example into the class name string (although it doesn't matter where in the line I paste), I'm left with this:

@Html.TextBoxFor (m => m.WordCount, new { @class = "form-control text-right" })

Please note the newly-added space between 'TextBoxFor' and the left parenthesis.

This breaks parsing of the Razor which requires there to be no space there.

So, the question is: "How do I stop this happening?"

Any help would be GREATLY appreciated as this is driving me nuts :S :D

PS.  Has anyone tried using this rich text editor from Opera? Enter moves  the cursor up a line rather than down - requiring me to write my post in  reverse :S

Please sign in to leave a comment.