Compartilhar via


Zero-length box selection

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! :)

Comments

  • Anonymous
    January 13, 2010
    That is awesome. Gone are the days of copy paste, down arrow, home paste, down arrow, home paste....etc. Good stuff Zain.

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

  • Anonymous
    January 19, 2010
    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/