Visual Studio Optimizations

  • 2 minutes to read
  • edit

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

Projects and Solutions

Text Editor

Windows Forms Designer

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.

Comments