Transpose Lines, Words, and Characters -- vstipEdit0042

Tips Search

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

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

Transpose Lines, Words, and Characters -- vstipEdit0042

  • Comments 3

Keyboard:  ALT + SHIFT + T (line); CTRL + SHIFT + T (word); CTRL + T (character)
Command:  Edit.LineTranspose; Edit.WordTranspose; Edit.CharTranspose
Versions:  2008,2010
Published:  4/8/2010
Code:  vstipEdit0042

 

Download the seriously cool Tip of the Day Extension to get the daily tips delivered to your Start Page!

 

Ever have a line you want to move down or switch with another line?  Well it's easy!  Just find a couple of lines you want to switch and put your cursor in the top line:

image

 

Then press ALT + SHIFT + T to transpose the two lines:

image

 

 

 

This feature also works with words:

image

 

CTRL + SHIFT + T:

image

 

 

 

And characters as well:

image

 

CTRL + T:

image

  • Zain,

    I did attend your webinar on Tips and Tricks. I was happy to see so many things that I have been wanting for. Thank you for the presentation.

  • Cool, I like ctrl+shift+t !! Thank you!

  • Sunil -- Glad you liked it :)

    Paul -- Yeah, CTRL + SHIFT + T is by far the keystroke people will use most often.  Makes moving a line of code down very, very fast when compared to cut and paste operations.

    Z

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