Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2015 is extremely slow

I have installed Visual Studio 2015 Professional Edition, and my computer specs are Intel i7-3770 CPU 3.40 GHz, 8 GB RAM, and Windows 7 Enterprise 64-bit.

I want to upgrade my project to .NET 4.6 which is written in Visual studio 2005 .NET 2.0, but I have a serious problem about speed. After I open my project (huge project) in Visual Studio 2015 it is going crazy. Building, debugging, opening menus are too slow. Sometimes I got "not responding" message. Is it about Windows 7 or can you give me any advice about my speed problem?

like image 395
Vins4nity Avatar asked Dec 21 '15 12:12

Vins4nity


People also ask

Why does Visual Studio run so slow?

You might have extensions installed that slow Visual Studio down. For help on managing extensions to improve performance, see Change extension settings to improve performance. Similarly, you might have tool windows that slow Visual Studio down.

Why is Visual Studio so heavy?

This is mainly because Visual Studio has lots of components, extensions and tools. This includes: ASP.NET and web development.


2 Answers

You can try to apply the following steps:

  1. Go to menu ToolsOptionsSource Control and set Current source control … to None

  2. Go to menu ToolsOptionsEnvironment (or Accounts)Synchronized Settings and remove this option by unchecking the checkbox.

  3. Clean the contents in the following cache folders (do not delete these folders, instead delete their contents only) and restart Visual Studio:

  • Clean the content in WebSiteCache folder (can be found in
    C:\Users%USERNAME%\AppData\Local\Microsoft\WebSiteCache)

  • Clean the content in Temporary ASP.NET Files folder (can be found in
    C:\Users%USERNAME%\AppData\Local\Temp\Temporary ASP.NET Files)

Note: If you have Hardware Acceleration enabled or if you use the default Visual experience settings in Microsoft Visual Studio 2015 or Visual Studio 2013, you might experience intermittent performance issues, product crashes, or rendering issues. In order to work around these issues, go to menu ToolsOptionsEnvironmentGeneral and apply the following settings:

Enter image description here

For more information, visit You experience performance issues, product crashes, or rendering issues in Visual Studio 2015 and Visual Studio 2013.

If the problem is related to debugging, try the workaround on Visual Studio debugging/loading very slow.

I hope this helps...

like image 129
Murat Yıldız Avatar answered Oct 19 '22 00:10

Murat Yıldız


This site contains some useful tips on how to improve the Visual Studio performance, disabling features for large solutions. For example:

  1. Go to Tools -> Options -> Text Editor -> C# -> Advanced and uncheck Enable full solution analysis

  2. Go to Tools -> Options -> XAML Designer -> General and uncheck Enable XAML Designer (requires restart of Visual Studio)

  3. Go to Tools -> Options -> Text Editor -> All Languages and uncheck Enable CodeLens

  4. Go to Tools -> Options -> Debugging -> General and disable Enable Diagnostic Tools while debugging

like image 39
Ricardo Fontana Avatar answered Oct 18 '22 22:10

Ricardo Fontana