I noticed since yesterday my system using close to 100% CPU and memory. I found whenever I am using VS Code the Antimalware Service Executable uses above 60% of CPU usage all the time.
I turned off real-time protection and then problem with VS code using closely 100% of memory. Tried hard and shutdown the system, this issue keep coming whenever I opened VS Code.
I just updated my VS Code yesterday. What should I do?
You can tell Windows anti-malware to trust VS Code in its settings. If the problem is really due to an extension that runs separate programs in separate processes, you'd also need to tell it to trust those programs. See the Windows docs for how to do this.
Ex. for windows 11:
If VS Code uses 100% CPU with no antivirus enabled at all though, something is really wrong and maybe you should at least try uninstalling and reinstalling it.