Select Page

Last Updated on 2023-09-30.

Problem

MS Visual Studio 2022 (currently v17.4), e.g. within a simple C# .NET console app, becomes nearly unresponsive, taking multiple seconds while typing a few characters into the editor.

Solution/Workaround

  1. Watch the current background tasks VS is running at the moment (bottom left), and make sure every task finishes within a few seconds.
    • If you experience e.g. a very long indexing of project files, this could be suspicious.
  2. Reset VS settings to default:
    • devenv /ResetSettings
    • devenv /ResetUserData
  3. Delete .vs subfolder of your project
  4. Disable project cache:
    • Tools -> Options -> Environment -> Preview Features -> Use the project cache …

This should improve the editor’s AutoComplete feature a lot.

If not, have a look at the references, there are a few additional option tweaks which might be helpful.

(German Screenshot)

References

https://stackoverflow.com/questions/72237599/how-to-disable-that-new-filecontentindex-folder-and-vsidx-files-in-vs-2022

https://superuser.com/questions/1663409/how-to-fully-reset-all-visual-studio-settings-to-factory-defaults

https://stackoverflow.com/questions/73787513/what-is-vsidx-in-visual-studio-and-why-is-it-autogenerated

https://www.reddit.com/r/VisualStudio/comments/zm252q/vs_2022_very_laggy_and_slow/