Avoiding copy/paste of a blank line accidently in visual studio.

To avoid the accidental copy/paste just follow the steps:

  1. Open editor
  2. Go to the "Tools" tab.
  3. Select options.
  4. Choose Text editor
  5. Choose "All language" or you can choose a particular language.
  6. Then uncheck the  "Apply cut or copy command to blank lines when there is no selection.
  7. Press OK.

blank_copy_avoid_small.png

(View larger image by clicking above image