10 Visual Studio 2010 Tips You Will Enjoy Reading

Posted by: Suprotim Agarwal , on 8/18/2011, in Category Visual Studio
Views: 89217
Abstract: In this article, I will share 10 random Visual Studio 2010 Tips you probably did not know about. Most of them work with Visual Studio 2008 too!

In this article, I will share 10 random Visual Studio 2010 Tips you probably did not know about. Most of them work with Visual Studio 2008 too!

Disable Squiggly or Wavy lines in Visual Studio - The ‘Live Semantic Error feature’ in Visual Studio 2008 SP1 and onwards indicates problems in your code immediately as it detects one, without the need for a compile. Red squiggly or wavy lines appear beneath your code that is incorrect or could cause a problem. Now this could be a time saver in many scenarios, but could also be distracting at times. If you want to temporarily turn it off, here’s how to do so.

Refactoring code using Extract Method in Visual Studio 2010 - Refactoring is the process of improving your code after it has been written, by changing the internal structure of the code without affecting its functionality. Extract Method is a refactoring operation in Visual Studio 2010 that provides an easy way to create a new method from a code fragment, in an existing member.

Visual Studio: Remove Unused References and Assemblies from your Project - When you create a default project in Visual Studio, there are a couple of references and assemblies that get added by default. You may not need them all. So after you have finished coding, it’s a good idea to remove unused references as well as assemblies from your project to improve code readability, maintainability as well as gain a slight advantage in the applications load time. This article shows how.


Compact CSS formatting in Visual Studio - Visual Studio provides default formatting settings for the CSS Editor. You can provide style as well as capitalization formatting to your CSS code. This article shows how to do it.

Link Files Between Different Projects - Visual Studio - You can add file to an existing project either by copying the files directly or create a link between them. When you create a link, the file does not get physically copied to a new location, only a reference is set to it. The process is quite simple as shown in this article.

Print Source Code in Color using Visual Studio 2010 - Although Visual Studio 2008 supported printing of source code with color, Visual Studio 2010 prints code in Black and White. The VS team while releasing VS 2010 added no support for printing source code, with colored syntax! A lot of us jokingly thought that the VS team wanted to discourage printing and someone was a Go-Green fan in their team :) although the actual reason was, that they could not add color printing in VS 2010 due to time constraints. The good news is, using the recently released Free Color Printing extension, you can now print code in color using VS 2010.

Disable F1 in Visual Studio - If you are using Visual Studio on a laptop, especially the smaller ones a.k.a. the Netbook, the keys are way too close to each other and I often end up hitting the F1 button instead of the ESC key. Here’s a simple tip to disable the F1 key in Visual Studio 2005, 2008 or 2010 to save you from some annoyance.

Share Visual Studio 2010 Layout Settings Between Machines - I have Visual Studio 2010 installed on two machines: One is on a Multi-Monitor Desktop machine at work and the other on my Home computer. I also very frequently customize Visual Studio the way I want, changing the document windows, setting the floating and docking positions of windows and much much more! Understandably, I would love to share my Visual Studio layout and other settings in between the two machines. Visual Studio provides just the option I need!

Visual Studio - Always Run as Administrator - By elevating permissions for Visual Studio, you can perform all tasks related to features such as building and debugging applications, which 'might not' work correctly under standard user permissions. To elevate permissions, go to the Start Menu and right click Visual Studio > click 'Run as Administrator'. However if you are the only user on the machine and frequently need to do this, it could be annoying, plus there are chances you could forget running VS with elevated permissions. Here's how to always run Visual Studio as Administrator in Windows Vista/ Windows 7.

Intellisense Icons in Visual Studio – A simple post about the Babel icons that show up in intellisense.

This article has been editorially reviewed by Suprotim Agarwal.

Absolutely Awesome Book on C# and .NET

C# and .NET have been around for a very long time, but their constant growth means there’s always more to learn.

We at DotNetCurry are very excited to announce The Absolutely Awesome Book on C# and .NET. This is a 500 pages concise technical eBook available in PDF, ePub (iPad), and Mobi (Kindle).

Organized around concepts, this Book aims to provide a concise, yet solid foundation in C# and .NET, covering C# 6.0, C# 7.0 and .NET Core, with chapters on the latest .NET Core 3.0, .NET Standard and C# 8.0 (final release) too. Use these concepts to deepen your existing knowledge of C# and .NET, to have a solid grasp of the latest in C# and .NET OR to crack your next .NET Interview.

Click here to Explore the Table of Contents or Download Sample Chapters!

What Others Are Reading!
Was this article worth reading? Share it with fellow developers too. Thanks!
Share on LinkedIn
Share on Google+

Suprotim Agarwal, MCSD, MCAD, MCDBA, MCSE, is the founder of DotNetCurry, DNC Magazine for Developers, SQLServerCurry and DevCurry. He has also authored a couple of books 51 Recipes using jQuery with ASP.NET Controls and The Absolutely Awesome jQuery CookBook.

Suprotim has received the prestigious Microsoft MVP award for ten consecutive times. In a professional capacity, he is the CEO of A2Z Knowledge Visuals Pvt Ltd, a digital group that offers Digital Marketing and Branding services to businesses, both in a start-up and enterprise environment.

Get in touch with him on Twitter @suprotimagarwal or at LinkedIn

Page copy protected against web site content infringement 	by Copyscape

Feedback - Leave us some adulation, criticism and everything in between!
Comment posted by kiran on Tuesday, August 23, 2011 4:16 AM
Hi iam new for VSTS , While running my script shows below error, i am unable to solve this issue. plese do the need ful solution. Request failed:        Context parameter '$HIDDEN1.wa' not found in test context
Thanks and regards,
Comment posted by sachinpatil10d on Friday, August 26, 2011 4:06 AM
Nice article
Comment posted by ben on Wednesday, October 19, 2011 4:21 AM
  Can you pl show how to fill data in a gridview using jquery - ajax - httphandler?
Comment posted by majed on Sunday, January 15, 2012 4:58 AM
It is was so help full for me as to know some basic things about vs.Nice one.
Comment posted by kalyansantosh on Wednesday, May 15, 2013 12:52 AM
Hi iam new for VSTS , While running my script shows below error, i am unable to solve this issue. plese do the need ful solution. Request failed:        Context parameter '$HIDDEN1.wa' not found in test context  and 404 error
Comment posted by Navee on Saturday, September 7, 2013 11:17 AM
Hi. Can you tell me how  to run complete project in visual studio 2010 to show the  live presentation. Pls tell me steps