06.10 Transpose Lines, Words, and Characters

DEFAULT

Alt+Shift+T (line); Ctrl+Shift+T (word); Ctrl+T (character)

VISUAL BASIC 6

Alt+Shift+T (line); Ctrl+Shift+T (word); [no shortcut] (character)

VISUAL C# 2005

Alt+Shift+T (line); Ctrl+Shift+T (word); Ctrl+T (character)

VISUAL C++ 2

Alt+Shift+T (line); Ctrl+Shift+T (word); Ctrl+T (character)

VISUAL C++ 6

Alt+Shift+T (line); Ctrl+Shift+T (word); Ctrl+T (character)

VISUAL STUDIO 6

Alt+Shift+T (line); Ctrl+Shift+T (word); Ctrl+T (character)

WINDOWS

[no shortcut]

COMMAND

Edit.LineTranspose; Edit.WordTranspose; Edit.CharTranspose

VERSIONS

2005, 2008, 2010

CODE

vstipEdit0042

Ever have a line you want to move down or switch with another line? Just find a couple of lines you want to switch, and put your cursor ...

Get Coding Faster: Getting More Productive with Microsoft® Visual Studio® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.