#50 How not to accidentally copy a blank line in Visual Studio

We all use CTRL+C and CTRL+V everyday, 1000 times. It’s one of the first things you have to learn as a programmer to keep you hands on the keyboard. It’s easy to sometimes press CTRL+C again, when in fact it’s time to Paste, so you really meant to press CTRL+V. Visual Studio will allow you to copy a blank line. So it what you’re trying to paste, is onto a new blank line, and you accidentally press CTRL+C, you’ll copy the blank line, then your CTRL+V is lost. (Oh but tip #51 Shows you the clipboard ring). Anyway – this tip tells Studio to not copy blank lines.

Comments

comments