Unable to re-install Visual Studio Code

Sarunoy 0 Reputation points
2023-08-01T14:32:19.7366667+00:00

After uninstall VS code, I try to re-install it again. But after I pressed the install button, it appears " Something happened on ou.." on it. Please give me an advice to fix this problem

Developer technologies Visual Studio Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. aquelepaulo 0 Reputation points
    2023-08-01T15:19:07.2733333+00:00

    Hi Sarunoy! You didn't say what operating system you're using, but generally speaking, it could be that the uninstall step wasn't done correctly. make sure vscode is completely uninstalled before proceeding with the installation.

    The steps for uninstalling Visual Studio Code will depend on your platform (Windows, macOS, or Linux) and the install option that you used. For example on Windows, you can use the System or User Windows Installers or download a .zip file and extract the contents anywhere on your machine.

    In general, you would uninstall VS Code as you would any other desktop application and follow your platform's recommended flow for uninstalling software. Specific platform guidance is provided below as well as how to completely clean up any remaining VS Code configuration files.

    Windows

    Windows Installer

    If you installed VS Code via the Windows Installer, either the User or System version, use the installer to remove VS Code.

    • Start menu
    • Search for Add or Remove Programs and find Visual Studio Code in the Apps > Apps & features list.
    • Select Uninstall from the actions dropdown on the right side (three vertical dots).
    • Follow the prompts to uninstall VS Code.
    • Control Panel
    • Under Programs, select the Uninstall a program link.
    • Find the Visual Studio Code entry, right-click, and select the Uninstall command.
    • Follow the prompts to uninstall VS Code.

    .zip file installation

    If you installed VS Code on Windows by downloading and extracting one of the .zip files found on the Visual Studio Code website, you can uninstall by deleting the folder where you extracted the .zip contents.

    macOS

    To uninstall VS Code on macOS, open Finder and go to Applications. Right-click on the Visual Studio Code application and select Move to Trash.

    Linux

    To uninstall VS Code on Linux, you should use your package manager's uninstall or remove option. The exact command line will differ depending on which package manager you used (for example, apt-get, rpn, dnf, yum, etc.).

    The names for the VS Code packages are:

    • code - VS Code Stable release
    • code-insiders - VS Code Insiders release

    For example, if you installed VS Code via the Debian package (.deb) and apt-get package manager, you would run:

    sudo apt-get remove code
    

    where code is the name of the VS Code Debian package.

    Clean uninstall

    If you want to remove all user data after uninstalling VS Code, you can delete the user data folders Code and .vscode. This will return you to the state before you installed VS Code. This can also be used to reset all settings if you don't want to uninstall VS Code.

    The folder locations will vary depending on your platform:

    • Windows - Delete %APPDATA%\Code and %USERPROFILE%\.vscode.
    • macOS - Delete $HOME/Library/Application Support/Code and ~/.vscode.
    • Linux - Delete $HOME/.config/Code and ~/.vscode."

    After following these steps, try the installation again.


  2. Tianyu Sun-MSFT 34,436 Reputation points Microsoft External Staff
    2023-08-03T08:05:02.08+00:00

    Hello @Sarunoy ,

    Welcome to Microsoft Q&A forum.

    Since VS Code(different from VS) is currently not supported in the Microsoft Q&A forums, you can post your question here: Stack Overflow tagged Visual Studio Code for further help.

    Thanks for your understanding, have a great day.

    Sincerely,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.