Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

My VS code keeps crashing when opening it [duplicate]

I have tried uninstalling and reinstalling it, but the problem did not dissappear. It seems that when I open the app, more than 20 windows open at the same time, causing the app to crash. Here is a screenshot: Desktop screenshot

I've searched on the internet for what else to do, but I didn't come across any solution.

like image 291
Dennis Stratinski Avatar asked Jan 19 '26 12:01

Dennis Stratinski


2 Answers

I am just reposting the answer from Chesedo's comment to be sure everyone can see it.

it is a problem with the latest release and for now, you can fix it by reverting to the last version

snap revert code
like image 85
Amin Setayeshfar Avatar answered Jan 22 '26 07:01

Amin Setayeshfar


The solution was to start VS Code from the command prompt with the following command:

code --disable-extensions --max-memory=12288mb

Then to close all open tabs and correctly exit VS Code without any open files. Hopefully this helps someone!

like image 21
Dennis Stratinski Avatar answered Jan 22 '26 07:01

Dennis Stratinski