10 Visual Studio 2010 Tips You Will Enjoy Reading
Posted by: Suprotim Agarwal
in Category Visual Studio
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.