Visual Studio and Visual Web Developer 2010 Tips and Tricks

John Avis by | May 22, 2012 | ASP.NET Web Forms

Here's a few shortcuts that you may not be familiar with in Visual Studio 2010 and Visual Web Developer 2010...

Pressing Ctrl+C on a line without selecting any characters copies the entire line to the clipboard. Ctrl+X does the same but cuts instead of copies.

If you have an entire line in the clipboard, no matter where the cursor is positioned in a line, when you paste the line will be instered above the current line.

Ctrl+D puts the cursor in the Find textbox in the toolbar.
(Note: sadly this no longer works in VS 2012, but Ctrl+F has been improved)

Ctrl+G allows you to enter a line number to immediately go to.

Ctrl+F is for find, and Ctrl+H is for replace. To go straight to find in files, or replace in files holden down the shift key too (eg. Ctrl+Shift+F or H).

Use chords to quickly comment and uncomment code. Ctrl+K, Ctrl+C (hold down Control, press and release K, press and release C, release Control) comments, and Ctrl+K, Ctrl+U uncomments the selected text or current line if no text is selected.

Do you know any other tips and tricks?

Related Posts

ASP.NET Web Forms Bootstrap

More on Bootstrap 4 modals in ASP.NET Web Forms applications using UpdatePanels

by John Avis | April 9, 2019

In this, my third post on this topic, I go over the methods I am using now and the problems I have encountered and overcome.


ASP.NET Web Forms Classic ASP

Custom error pages for ASP.NET Web Forms and Classic ASP in IIS 7 and 8.5

by John Avis | February 20, 2019

I was recently doing some work on a website which has a mixture of older Classic ASP pages and ASP.NET Web Forms pages and ran into problems with custom error pages.


ASP.NET Web Forms

Nicer localised UpdateProgress’ for your ASP.NET pages with multiple UpdatePanels

by John Avis | February 9, 2018

On an ASP.NET Web Forms page with multiple UpdatePanels it’s nice to give the user some feedback when one of the panels is being updated.

Comments

There are no comments yet. Be the first to leave a comment!

Leave a Comment
Tags
ASP.NET Html Forms ASP.NET MVC ASP.NET Web Forms ASP.NET Web Pages Bootstrap C# Classic ASP Cool Websites Databases eBay and PayPal Electrical Repairs General Hardware HTML/CSS Jquery/Javascript Media Center Mobile Phones Responsive Web Design SEO and Social Networking Web Design Web Development Web Security web+db Website Hosting Windows XP Youtube

About me

...mostly about web development and programming, with a little bit of anything else related to the Internet, computers and technology.

Subscribe

Get the latest posts delivered to your inbox.