Search code examples
pythondjangolinuxvisual-studio-codeubuntu-24.04

VS Code closes after opening


I just installed ubuntu 24. I'm a django developer and I've been working fine with Visual Studio Code, but today when I tried to open my vscode, while it was opening it closed without any error or message! :(

I restarted my computer and reinstalled Vscode. But nothing that nothing:(

note: I installed vscode from app center on ubuntu


Solution

  • I've faced the same issue. I think you've installed it from snap store. You need to install it with deb package. Uninstall the current code(remove it). Go to official website of Visual Studio Code, download the latest version and install it with command:

    sudo dpkg -i code_1.90.0-1717531825_amd64.deb
    

    In fact, the command is:

    sudo dpkg -i <deb_file_name>.deb