Disabling a copy of empty text in Visual Studio

I somehow misconfigured my fingers. This leads to a very unpleasant situation.

  • I select a block for copying text;
  • I move the cursor to the place where I want to paste the code;
  • I accidentally press Ctrl + C again instead of Ctrl + V;
  • My block of copied text is replaced by an empty block;
  • I need to go back and do it again and again. Grrrrr.

Is there a way to disable this behavior, that is, disable a copy of empty blocks of text in Visual Studio 2005 +?

+46
visual-studio keyboard
Sep 16 '08 at 16:03
source share
6 answers

It does not copy an empty block, it copies an empty string. You can change this parameter in the menu "Tools"> "Options"> "Text editor"> "All languages"> "Apply cut or copy commands to empty lines when there is no choice"

+49
Sep 16 '08 at 16:06
source share

Press CTRL + SHIFT + V twice.

+12
Sep 16 '08 at 16:05
source share

I am using Visual Studio 2008 (but I believe this answer applies to Visual Studio 2005).

Choose Tools β†’ Options.

Go to the Text Editor node and expand it.

Expand "All Languages" (or any language you want to apply it to), and check "Apply cut or Copy commands to empty lines when there is no choice".

+2
Sep 16 '08 at 16:07
source share

The option that has preserved my sanity is located in the Tools menu - Options - Text Editor - All Languages ​​- General. Select the Apply cut or Copy commands to blank lines check box when there is no selection. Having removed this, I hit Ctrl + C, all I want is on an empty line, without losing the contents in my clipboard.

Source

+2
Sep 16 '08 at 16:08
source share

Go to "Tools"> "Options"> "Text Editor"> "All Languages"> "General"

The option on this page is "Apply Cut or Copy to blank lines when there is no selection"

+1
Sep 16 '08 at 16:11
source share

For some reason this option didn't work for me (VS2010)

The answer mentioned here is where you assigned Ctrl + C for the macro, however Disabling a single-line copy in Visual Studio

+1
Feb 11 '13 at 23:02
source share



All Articles