06.29 Pasting the Contents of One Box Selection into Another

DEFAULT

Shift+Alt+[Up, Down, Left, Right] Arrow

VISUAL BASIC 6

Shift+Alt+[Up, Down, Left, Right] Arrow

VISUAL C# 2005

Shift+Alt+[Up, Down, Left, Right] Arrow

VISUAL C++ 2

Shift+Alt+[Up, Down, Left, Right] Arrow

VISUAL C++ 6

Shift+Alt+[Up, Down, Left, Right] Arrow

VISUAL STUDIO 6

Shift+Alt+[Up, Down, Left, Right] Arrow

WINDOWS

[no shortcut]

COMMAND

Edit.Line[Up, Down]ExtendColumn; Edit.Char[Left, Right]ExtendColumn

VERSIONS

2005, 2008, 2010

CODE

vstipEdit0007

Box selection is a powerful tool that is often overlooked. One of the things you can do, for example, is paste one box selection into another of the same size. Let’s assume you have the following code:

However, you want the first set of variables ...

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.