I frequently type Ctrl+C instead of Ctrl+V on a blank line and loose the data on the clipboard by copying a blank line.
Today, I discovered a VS option to disable cut and copy commands on blank lines when there is no selection.
You may find the option in Tools - Options - Text Editor - All Languages - General. Uncheck Apply Cut or Copy commands to blank lines when there is no selection.
To disable Cut or Copy commands to blank lines uncheck "Apply Cut or Copy commands to blank lines when there is no selection" checkbox.
UPDATE I forgot to mention that the tip applies both to Visual Studio 2005 and Visual Studio 2008.
Want automatic updates?
Subscribe to our RSS feed
Get Email Updates
sent directly to your inbox!