Visual Studio always hangs and freezes

oliverd 1 Reputation point
2021-02-17T11:37:12.287+00:00

I'm running Visual Studio Community 2019 on Windows 10 Home 20H2.

Whenever I try and do anything, such as create a new WinForm or rename something, it might hang or completely freeze, and then I get a 'Visual Studio Delay Notification'. It's really annoying, as I would like to make my programs without interruptions, so any advice is appreciated.

My specifications are as follows:
AMD A9-9425 CPU
4GB RAM
1TB HDD
Lenovo Laptop Brand

69094-image.png
69114-image.png

Developer technologies | Visual Studio | Other
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Ken Tucker 5,861 Reputation points
    2021-02-17T12:34:04.633+00:00

    Looking at recommended system specs. I see your processor should be fast enough. Min ram is 2 gigs but it recommends 8 gigs. It also recommends having an SSD hard drive.

    https://learn.microsoft.com/en-us/visualstudio/releases/2019/system-requirements

    I would also recommend updating your antivirus (windows defender included) to not scan the folder your solution is in

    1 person found this answer helpful.

  2. Tianyu Sun-MSFT 34,451 Reputation points Microsoft External Staff
    2021-02-18T06:17:16.007+00:00

    Hello @oliverd ,

    Welcome to Microsoft Q&A forum.

    If you try to launch VS in safe mode(run devenv /SafeMode in Developer Command Prompt for VS 2019), will Visual Studio hang and freeze again?

    Besides, did you change some settings in Visual Studio, for example in Tools > Options… or in Project Properties… and did you download and install some third-party extensions? If you installed some of them, please kindly try to disable them temporarily from Extensions > Manage Extensions > Installed > Disable and then restart VS 2019. I also suggest you try to repair and update VS.

    Best Regards,
    Tianyu

    • If the answer is helpful, please click "Accept Answer" and upvote it.
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    0 comments No comments

  3. Duane Arnold 3,216 Reputation points
    2021-02-18T07:12:38.467+00:00

    It could be that the Windows O/S page file setting is not at an optimal setting and page trashing is happening that could cause VS to hang.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.