Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2008 or ReSharper shortcut to delete line

Which shortcut deletes the whole line where cursor is?

like image 868
epitka Avatar asked Sep 18 '09 15:09

epitka


People also ask

What is the keyboard shortcut to delete an entire line?

On your keyboard, press and hold the left or right Shift key and then press the End key to highlight the entire line. Press the Delete key to delete the line of text.

How do I delete a whole line in Visual Studio?

Ctrl + Shift + L will delete the line and not copy to the clipboard.

What is the keyboard shortcut to set resharper?

Choose Tools | Options from the menu and then go to Environment | Keyboard page. Use the shortcut tables to find the alias of the command, to which you are going to assign a new shortcut. If some command does not have a default shortcut, you can find its alias under the title of the corresponding help page.


1 Answers

The keyboard shortcut to delete a line without copying the contents has eluded me far to long... There are a few answers here, but they need some clarification:

Ctrl+Shift+L

  • Deletes the current line and does not copy the text (does not matter if anything is highlighted or not).

Ctrl+L

  • Cuts the current line and copies it to your clipboard (does not matter if anything is highlighted or not). This would be the same thing as highlighting the entire line and then using Ctrl+X.

Shift+Delete

  • If nothing is highlighted, then cuts the current line and copies it to your clipboard.
  • If anything is highlighted, then cuts the highlighted text and copies it to your clipboard.


HTH's someone.

like image 68
Metro Smurf Avatar answered Sep 30 '22 09:09

Metro Smurf