Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Comment out a block of code?
Message
De
14/05/2010 00:50:30
 
 
À
13/05/2010 11:50:02
Guy Pardoe
Pardoe Development Corporation
Peterborough, New Hampshire, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01464415
Message ID:
01464523
Vues:
46
I agree with Tim ... and the nice thing about highlighting with the mouse is that you don't have to actually highlight the entire block from the left side of the IDE ... highlighting even just a part of a line will cause it to be commented. I'm sure that's true when using the keyboard shortcuts also, but as Tim points out, if you are using the mouse to highlight, you might as well use it to click the toolbar button. I just find that for large blocks of code, mouse highlighting is easier than keyboard highlighting IMHO.

~~Bonnie



>Thanks to both of you for the quick feedback.
>
>I have been using the /* technique, but was feeling inefficient. Glad to know there's a faster way.
>
>:)
>
>
>
>
>>Ctrl+K+C and Ctrl+K+U.
>>
>>See http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=92ced922-d505-457a-8c9c-84036160639f
>>
>>You can also just do /* at the beginning and */ at the end of the block.
>>
>>>Hi,
>>>
>>>In VFP I could highlight a block of code and do the keyboard shortcut ALT+O,M to comment it out.
>>>
>>>Is there a keyboard equivalent to do this in VS 2010? I'm using C# if that matters.
>>>
>>>Thanks,
>>>Guy
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform