wolfgang ziegler


„make stuff and blog about it“

Avoid Cut and Copy of Blank Lines in Visual Studio

September 25, 2014

How many times have you accidentally cut or copied a blank line in Visual Studio because you hit the wrong key (X or C) when you actually meant to paste (V)? To me, that has happened a lot and I don't even want to know how many hours that has cost me so far?

It turns out Visual Studio actually has a setting for that that helps you avoid that. Awesome, had I only known about that a couple of years earlier.

2014-06-11 12_59_31-Options

Here's yet another secret: Visual Studio has a clipboard ring.

This means, if you accidentally cut or copy unwanted content into the clipboard your previous clipboard content does not get lost. You can still access it by cycling through the clipboard ring. Hold Ctrl + Shift key down for that and press V (paste) repeatedly.

mindblown[1]