ASP 101 - Active Server Pages 101 - Web01
The Place ASP Developers Go!

Windows Technology Windows Technology
15 Seconds
ASP 101
ASP Wire
VB Forums
VB Wire
internet.commerce internet.commerce
Partners & Affiliates
ASP 101 is an site
ASP 101 is an site
Internet News
Small Business
Personal Technology

Corporate Info
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash

 Top ASP 101 Stories Top ASP 101 Stories
What is ASP?
VBScript Classes: Part 1 of N
Migrating to ASP.NET

Fix for IIS security bug
Show All Tips >>
ASP 101 RSS Feed ASP 101 Updates

Quick Tips

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!

Previous      Show All Tips      Next

If you have a tip you would like to submit, please send it to:

Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback
The Network for Technology Professionals



Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers