Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the command for block select in Visual Studio 2008

In visual studio you can select a block of text by holding down Alt when when selecting text with the mouse. This is very useful for selecting a column of data or text as opposed to the entire line.

In Visual Studio 2003-2005 this operation could be performed by holding Alt + Shift in conjunction with the arrow keys but the keyboard option no longer works in VS2008.

Can anyone tell me the editor command to assign to a keyboard shortcut? Is this keyboard shortcut just moved to something else in VS 2008?

like image 412
RonnBlack Avatar asked Sep 04 '09 21:09

RonnBlack


People also ask

How do I select a block of code in Visual Studio?

Visual Studio for Mac makes it straightforward to select, cut, copy, and paste sections of your code. Rectangular blocks of code can be highlighted and selected by using the Option + Drag command on the code block.

How do you select a block of code?

Press Ctrl + Shift + ] You will find the complete code block between the start and end braces has selected.

What is the code to block code in Visual Studio?

You can select blocks of text by holding Shift+Alt (Shift+Option on macOS) while you drag your mouse. A separate cursor will be added to the end of each selected line.


1 Answers

The Alt + Shift + arrow key combination still works in VS2008 (at least it does in my default key mappings). It is possible that your key mappings are not set correctly to what you expect to work.

To manually set the key mappings, you need to look at Edit.LineUpExtendColumn, Edit.LineDownExtendColumn, Edit.CharLeftExtendColumn and Edit.CharRightExtendColumn in the keyboard settings and reassign them.

like image 58
adrianbanks Avatar answered Oct 10 '22 15:10

adrianbanks