I encountered a problem in Visual Studio Code while working on my project. The editor displayed an error message: Visual Studio Code Error: The Window Terminated Unexpectedly (reason: ‘oom’, code: ‘-536870904’). The error pop-up provided options to either reopen or close Visual Studio Code
I tried restarting both Visual Studio Code and my system, but it didn’t resolve the issue.
I found the problem: it was caused by having spaces in the folder name. Once I realized this, I renamed the folder, and my problem was 100% solved. For example, I changed the folder name from my folder to myfolder or my_folder. Make sure to check your folder names if you encounter a similar issue.
Parth is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.