I've just set up VS Code on my brand new HP Victus, which has an i7 13th Gen processor, 24GB of RAM, and a 1TB SSD. I'm trying to use GCC/MinGW for my C programming. I wrote a simple program that reverses a word using arrays—nothing complicated at all. However, when I run it, VS Code either takes over 400 seconds to execute, freezes, or crashes with exit code=1.
I've already tried a bunch of things to fix this:
1. Uninstalled Code Runner
2. Moved all project files out of OneDrive
3. Ran VS Code as an administrator
4. Tried both CMD and PowerShell
5. Compiled directly from the terminal instead of using the Run button
6. Cleaned up my tasks.json file
7. Double-checked my actual code
Despite everything, the issue persists. Since my laptop's hardware should handle this easily, I'm really at a loss. Has anyone experienced a similar issue or know how to fix it? I'd love to get back to coding without the wait.
2 Answers
Curious if you’re using the standard version of VS Code or the Insiders edition? I find that the normal blue VS Code tends to work better for most setups. Just a thought!
Antivirus software can really slow down the performance by scanning every file each time they're accessed, especially for smaller files like C/C++ headers. It’s worth checking if you have any antivirus running that might be impacting this. Disabling it might speed things up, even if it doesn't explain your terminal speed.
I’m using the normal one, not Insiders.