Zero-length box selection

Tips Search

If you like the tips then you'll love the book!

Order your copy today:
http://www.amazon.com/gp/product/0735649928

Zero-length box selection

  • Comments 3

Keyboard:  Alt + Left Mouse
Versions:  2010
Published:  1/14/2010
Code:  vstipEdit0009

 

The power of box selection continues with the super cool zero-length box selection.  Let's assume that you have a situation with some variables like the ones below and you want to make them all public:
image

The answer is a zero-length box selection.  Hold down your ALT key and Left Mouse Button, then drag straight down.  Note the line that is created:
image


 

Release the ALT key and the Left Mouse Button.  Now, just start typing:
image

Bask in the wonder and glory that is the zero-length box selection! :)

  • That is awesome. Gone are the days of copy paste, down arrow, home paste, down arrow, home paste....etc.

    Good stuff Zain.

  • Very cool.  In the past I've always had to use a real text editor (vim) for tasks like this.

  • I'm an old VIM guy myself but haven't used it in a while, however I did find this for those that like using VIM with Visual Studio:

    http://www.viemu.com/

Page 1 of 1 (3 items)
Leave a Comment
  • Please add 3 and 1 and type the answer here:
  • Post