Created
March 5, 2025 07:02
-
-
Save sofferm/4c0437c3ec80d7f6c272b24685a8ca4d to your computer and use it in GitHub Desktop.
Remove bad extensions from Visual Studio Code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Define the set of extension names to uninstall | |
| $extensionNames = @( | |
| "equinusocio.vsc-material-theme", | |
| "equinusocio.moxer-theme", | |
| "equinusocio.vsc-material-theme-icons", | |
| "equinusocio.vsc-community-material-theme", | |
| "equinusocio.moxer-icons" | |
| ) | |
| # Loop through each extension name and uninstall it if installed | |
| foreach ($extensionName in $extensionNames) { | |
| # Get the list of installed extensions | |
| $installedExtensions = code --list-extensions | |
| # Check if the extension is installed | |
| if ($installedExtensions -contains $extensionName) { | |
| # Uninstall the extension | |
| code --uninstall-extension $extensionName | |
| Write-Host "Extension '$extensionName' has been uninstalled." | |
| } else { | |
| Write-Host "Extension '$extensionName' is not installed." | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment