Hi everybody,
In VS 2012 RTM I am trying to comment out this block of code
<div id="ContactsInfo">
@*Contact 1*@
<div id="Contact1">
@Html.EditorFor(model=>model.Contact1)
</div>
@*Contact2*@
<div id="Contact2">
@Html.EditorFor(model => model.Contact2)
</div>
</div>
I've tried Ctrl+K, Ctrl+C and also tried doing it from the menu, but nothing happens, the block stays not-commented. Is it because I already have comments? Can this be considered a bug in VS IDE?
UPDATE. After I removed that inner comments, I was able to comment successfully. I guess I should report this on Connect website.
UPDATE 2. Posted on Connect
https://connect.microsoft.com/VisualStudio/feedback/details/770103/commenting-block-of-code-with-embedded-comments-does-not-workThanks.
If it's not broken, fix it until it is.
My Blog