[program-l] Re: VS: Commenting code

  • From: "Will Pearson" <will-pearson@xxxxxxxxxxxxx>
  • To: <program-l@xxxxxxxxxxxxx>
  • Date: Wed, 21 Sep 2005 13:28:48 +0100

Hi David and Chee,
Yes, they're the same in Visual Studio 2005. Alternatively, the options to comment/uncomment a selection can be found under edit > advanced, and the options for outlining can be found under edit > outlining.


Will
----- Original Message ----- From: "David Lant" <david.lant@xxxxxxxxxxxx>
To: <program-l@xxxxxxxxxxxxx>
Sent: Wednesday, September 21, 2005 9:43 AM
Subject: [program-l] Re: VS: Commenting code



Hi Che,

You'll have to look this up, to see if the same keyboard commands are
assigned in VS 2005 as they are in VS.NET 2003.

To comment a block of code, highlight the required block in the usual way,
using the shift keys and arrow keys. Then, press ctrl+K followed by ctrl+C.
To reverse this, and uncomment a block of code, simply highlight the
commented block, and then press ctrl+K followed by ctrl+U.


To toggle the outlining feature, which collapses specific groups of code,
press ctrl+M followed by ctrl+M. Note, this can either be done by pressing
and releasing ctrl+M twice, or you can hold down the ctrl key, and tap M
twice. Whichever takes your fancy.


You can find the keyboard shortcuts on each menu item, as well as in the
Keyboard section of the Options dialog under the Tools menu. The menu
options for performing editing and formatting, can be found under the Edit
menu. E.g. for commenting and formatting code, look under Advanced, and for
Outlining, well, look under Outlining. <smile>


David Lant

I.T. Consultant
Consultancy & Development
ICT Services
Tel: (01392) 382464

Devon County Council accepts no legal responsibility for the contents of
this message. The views expressed do not reflect those of Devon County
Council.


-----Original Message----- From: Che [mailto:che@xxxxxxxxxxxxxxxx] Sent: 20 September 2005 21:36 To: program-l@xxxxxxxxxxxxx Subject: [program-l] VS: Commenting code


Hi again,
I am going through a set of video tutorials I got off Microsofts site for
VS express 2005. They are making reference to buttons that allow you to
comment multiple lines of code at once, as well as roll up lines of code out


of the way, both of which would be of great help to me, the newbie
programmer.
 Is there a way to do these things with the keyboard?
 Thanks,
 Che

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq
** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq



** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

Other related posts: