Skip to content

Tip 1.1: How to not accidentally copy a blank line

July 1, 2012

“Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio“, courtesy of ‘Sara Ford’

Sara Ford’s Blog

Sara Aside

There’s something about her that wants to hit Ctrl+C instead of Ctrl+V whenever she’s on a blank line. She just doesn’t understand it. So what happens is she copies a blank line, erasing the text she was trying to paste right there. And to her dismay, she hits Ctrl+V and nothing happens. In fact, she sometimes realizes that she has accidentally hit Ctrl+C, so she hits Ctrl+V as fast as she can, thinking she can outrun the editor. But she looses every time.

The option that saved her sanity is found in Tools–Options–Text Editor–All Languages–General. There’s a check box called Apply Cut Or Copy Commands To Blank Lines When There Is No Selection. Unchecking this option allows her to press Ctrl+C all she wants on a blank line without losing the content on her clipboard.

Happy Programming! =)

Advertisements
Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: