Geeks With Blogs

News



Microsoft Store

Support This Site


AddThis Social Bookmark Button

Locations of visitors to this page

Subscribers to this feed

TwitterCounter for @sdorman

Creative Commons License


Scott Dorman Microsoft MVP, Software Architect, Developer, Author

There are always a lot of posts about various add-ins, code snippets, macros, and other utilities that are designed to make you, the developer, more productive within Visual Studio as an editing environment. However, there seem to very few posts that talk about how to actually improve the performance of Visual Studio itself.

Browsing through some of the questions on Stack Overflow, I came across a thread asking this very question. There were a lot of non-answers, but one that definitively listed some settings that you can change which will help speed up Visual Studio. These changes are all available from the Options dialog (Tools –> Options):

  • Environment
    • General:
      • Disable “Animate environment tools”
    • Documents:
      • Disable “Detect when file is changed outside the environment”
    • Keyboard:
      • Remove the F1 key from the Help.F1Help command
    • Help\Online:
      • Set “When loading Help content” to “Try local first, then online” or “Try local only, not online”
    • Startup:
      • Change the “At startup” option to “Show empty environment”

  • Projects and Solutions

    • General:

      • Disable “Track Active Item in Solution Explorer”

  • Text Editor

    • General (for each language you want):

      • Disable “Navigation bar” (this is the toolbar that shows the objects and procedures drop down lists allowing you to choose a particular object in your code.

      • Disable “Track changes”

  • Windows Forms Designer

    • General:

      • Set “AutotoolboxPopulate” to false.

      • Set “EnableRefactoringOnRename” to false.

There is also one change that isn’t part of the Options dialog. If you have any code file that can be viewed in either a visual editor (like the Windows Forms editor) or a code editor, you can change the default editor by right clicking on the file and choosing the “Open With…” menu option. Select the program you want to use to open the file and click the “Set as Default” button. For example, doing this on a CSharp file (*.cs) and choosing the “CSharp Editor” as the default causes all code files (even classes that inherit from a visual element like Form) to open in the code editor not the designer. Don’t choose the editors that are listed as “with Encoding” as this will ask you for the encoding each time you open the file.

Technorati Tags:
DotNetKicks Image
Digg This
Posted on Thursday, August 28, 2008 3:04 PM General | Back to top


Comments on this post: Visual Studio Optimizations

# re: Visual Studio Optimizations
Requesting Gravatar...
I thought this was really helpful. Thanks!
Left by Rick Minerich on Sep 19, 2008 10:32 AM

# re: Visual Studio Optimizations
Requesting Gravatar...
I am a diehard Visual Studio C# developer but don't like the perfomance I am getting from Visual Studio 2010. With no solution open and all the optimizion tips and tricks applied the best I get is 155,316k for VS2010 versus only 30,540 for VS2008. I am dissapointed that I may have to go back to using VS2008 because of this. I want to be using the latest Visual studio and tools on my projects
Left by Jonathan Conley on Oct 27, 2010 9:42 AM

Your comment:
 (will show your gravatar)


Copyright © Scott Dorman | Powered by: GeeksWithBlogs.net | Join free