This PowerShell script will help you completely uninstall Visual Studio Code from your system, including all extensions and user settings. It also offers the option to save your settings and reinstall VSCode automatically if you want to start fresh! π
- Uninstall VSCode silently and cleanly π§Ή
- Remove all VSCode extensions and user data ποΈ
- Optionally save your VSCode settings to your Downloads folder πΎ
- Optionally reinstall the latest stable version of VSCode automatically π
Run the following command in PowerShell to execute the uninstall script directly from GitHub:
Invoke-Expression (Invoke-RestMethod -Uri 'https://raw.githubusercontent.com/writedev/CompleteUninstallVscode/refs/heads/main/script.ps1')Warning
- Make sure to run PowerShell with appropriate permissions.
- Your settings backup will be saved as
settings.jsonin your Downloads folder. - The script targets Windows OS and the default VSCode installation paths.
- Prompts you to start the uninstall process.
- Asks if you want to save your VSCode settings before uninstalling.
- Detects your VSCode installation path or lets you specify it.
- Uninstalls VSCode silently.
- Removes VSCode user data folders (
AppData\Codeand.vscodein your user profile). - Saves your settings file to your Downloads folder if you chose to.
- Optionally downloads and installs the latest VSCode version if you want to reinstall.
Happy coding! π»β¨