Cut or Copy Entire Lines Instantly in Visual Studio
While this is really more of a Visual Studio tip than an ASP tip, it's a huge time saver that
few people seem to know about.
Unlike most other Windows applications, in Visual Studio 2008, if you do a Cut or Copy command
without selecting any text first, the IDE will assume you want to select the
entire current line of text.
I know it may not seem like that big a deal, but it's one of those things that
once you get used to it, you'll be amazed how you ever lived without it. (Just like using
the Ctrl+Enter keyboard combination when typing a URL into a browser's address bar.)
By default, this behavior is enabled in the editor for all file types except XML files.
You can toggle it on and off for each language type the editor understands. You'll find
the setting by selecting "Options..." from the "Tools" menu.
In the Options dialog box, make sure the "Show all settings" box at the bottom is checked.
You'll find the setting under "Text Editor -> [Language] -> General", where [Language]
indicates the language for which you'd like to change the option.
It's the checkbox labeled "Apply Cut or Copy commands to blank lines when there is no selection".
While this tip won't make the code you write any better, it should at least help you write it faster!