I have a rather small visual studio project but at some point when i added one or two more files everything got much slower and intellisense(or i don't know what) got broken, or just became very slow(pointing out a syntax error even after i fixed it and etc.) Also the find and replace completely stopped working, building of a project now takes 10 times longer and etc. I had absolutely no luck to find any ways to somehow fix this(restart doesn't help, deleting .vs folder neither). What can be the cause of this problem? I'm using VS 2019 and even though my pc isn't very powerfull, it meets the system requirements. Could this all be because i don't have an SSD?
CodePudding user response:
According to your description, here are some suggestion to improve the build speed of Visual Studio 2019.
Uncheck Enable CodeLens under Tools > Options > Text Editor > All Languages.
If you have hardware acceleration enabled, or if you use the default visual experience settings you may experience intermittent performance issues, product crashes, or rendering issues. You could apply the following settings under Tools > Options > Environment > General.
Delete the contents of the following directories:
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)
You can refer to this page form more information about how to improve the performance.