Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio - Is there a keyboard combination to select an entire line?

I already know about Ctrl + L to delete an entire line...is there one to just select an entire line (which I can then copy and paste somewhere else...)

like image 384
Albert Avatar asked Apr 28 '10 18:04

Albert


People also ask

How do I select an entire line in Visual Studio?

Shift + End = Select the entire line from start to end. Shift + Home = Select the entire line from end to start.

How do you select a complete line on the keyboard?

Select an entire line of text by holding down the "Shift" key and pressing "End", if you are at the beginning of the line, or "Home" if you are at the end of the line. Select an entire paragraph by placing your cursor at either the beginning or the end of that paragraph.

How do I highlight a line in Visual Studio?

Highlight current line To specify the color to highlight the current line, go to the Visual Studio options (Tools | Options), open the Environment | Fonts and Colors page, and then select the desired color for the ReSharper Current Line Highlight item.


1 Answers

You can also use Ctrl + X to cut an entire line. Similarly, you can use Ctrl + C to copy an entire line.

As long as you don't have anything selected, the command will work on the entire line.

like image 64
Task Avatar answered Sep 22 '22 15:09

Task