Click here to Skip to main content
15,881,092 members
Articles / Visual Studio
Tip/Trick

How to select a block of text in Visual Studio

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
23 Jan 2011CPOL 13.8K   2   2
How to select a block of text in Visual Studio
A very neat feature that I have found (experienced programmers know it already) is how to
select a block of source code:

Press Alt Key and select a block of code while pressing the click button.

Very useful in formatting code that you have copied from web and paste it in Visual Studio and has line numbers attached to it.

Hope this helps someone.

Cheers !

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Unknown
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
Generalplus: if you type while a "block selection" is active the se... Pin
dalek924-Jan-11 8:15
dalek924-Jan-11 8:15 
General5 This works in other applications as well, like MS Word & ... Pin
Indivara23-Jan-11 14:02
professionalIndivara23-Jan-11 14:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.