Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem commenting block of code with comments?
Message
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Visual Studio
Titre:
Problem commenting block of code with comments?
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01556399
Message ID:
01556399
Vues:
70
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-work

Thanks.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform