Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disabling single line copy in Visual Studio

Is there anyway to disable the rather annoying feature that Visual Studio (2008 in my case) has of copying the line (with text on it) the cursor is on when CTRL-C is pressed and no selection is made?

I know of the option to disable copying blank lines. But this is driving me crazy as well.

ETA: I'm not looking to customize the keyboard shortcut.

ETA-II: I am NOT looking for "Tools->Options->Text Editor->All Languages->Apply cut or copy to blank lines...".

like image 999
erlando Avatar asked Sep 20 '08 13:09

erlando


People also ask

How do you copy multiple lines in Visual Studio?

Copy Multiple Values from the Visual Studio Editor. Selected Editor Text can be copied using "Ctrl + 0", "Ctrl + 1" ... "Ctrl + 9" (For Windows)


1 Answers

The real problem you probably experience is that you go to paste, with CTRL+V. And you accidentally type CTRL+C, and end up overwriting the stuff that's on your clipboard. You can't disable this as far as I know, however, the work around for this, is that you can press CTRL+SHIFT+V multiple times to go back up the stack of things you have copied in visual studio. Not only does this allow you to recover what you originally copied, but you'll also find that CTRL+SHIFT+V very useful in a lot of other situations.

like image 61
Kibbee Avatar answered Sep 20 '22 02:09

Kibbee