How To Uninstall VS Code On Mac (Ultimate Guide)

Before we dive in

Trying to uninstall an app completely? SpyHunter for Mac includes an App Uninstaller that removes unwanted apps and their leftover files in just a few clicks.

Avoid clutter and save time — download SpyHunter right here and follow the steps to clean up your system.

Download SpyHunter

Visual Studio Code is a popular and versatile code editor many developers favor due to its powerful features and extensive extension library.

However, there may come a time when you need to delete VS Code from your Mac, whether to free up resources, resolve software conflicts, or switch to a different development tool.

Uninstalling VS Code thoroughly is essential to ensure no residual files are left behind, which can clutter your device and potentially cause issues.

This guide will walk you through the process step-by-step, ensuring complete and efficient removal of VSCode from your Mac.

Why uninstall VS Code from Mac?

You might remove Visual Studio Code from your Mac for various reasons. Here are the most common ones:

  • Freeing up system resources by removing extensions and plugins.
  • Resolving conflicts with other applications or tools.
  • Switching to a different development tool.
  • Cleaning up after completing specific projects.
  • Troubleshooting persistent crashes or errors.
uninstall vscode on mac

Completely uninstall VSCode using SpyHunter

SpyHunter offers an effective solution for those who seek a comprehensive and hassle-free way to remove Visual Studio Code from their Mac.

Here’s how you can use SpyHunter to ensure VSCode is entirely uninstalled:

  1. Download SpyHunter for free here and follow the installation prompts.
  2. Open SpyHunter and navigate to the App Uninstaller tab.
  3. SpyHunter will automatically detect VSCode and the associated files distributed across your device.
  4. Once the scan is complete, locate the Visual Studio Code entry in the list of applications. SpyHunter will display all files related to the app.
  5. Select all items to ensure a full removal.
completely uninstall vscode using spyhunter
  1. Click on the Remove Selected button to proceed with the removal. SpyHunter will handle the deletion of Visual Studio and all its associated files, ensuring nothing is left behind.
  2. After the uninstallation process, restart your computer to finalize the removal.
spyhunter can completely uninstall visual studio code

Using SpyHunter to uninstall Visual Studio Code simplifies the process and ensures no residual files are left on your Mac.

This thorough method helps maintain your Mac’s performance and avoids potential application conflicts.

Manually remove VSCode from your Mac

You can manually remove Visual Studio Code by deleting its application files and related folders. But first:

Step 1: Quit VS Code

Menu Bar Option: Click on the Code menu at the top of your screen and select Quit Visual Studio Code from the dropdown.

quit vscode from menu

Dock Option: Alternatively, if the program is in your Dock, right-click (or Control-click) its icon and choose Quit from the context menu.

quit vscode from dock

Force Quit via Activity Monitor: If VS Code is not responding, open Activity Monitor and search for VSCode. Select all the processes related to the app and click the [X] button to force quit the application.

force quit vscode using activity monitor

Ensuring that VSCode is wholly closed is crucial for a smooth uninstallation process.

Step 2: Remove the Visual Studio Code app

To remove the main Code application from your Mac:

  1. Open a new Finder window.
  2. Navigate to the Applications folder or select Go > Applications from the Finder’s top menu.
  3. Scroll through the list to locate the VSCode app.
  4. Drag the app to the Trash in your Dock. Alternatively, right-click (or Control-click) on the program and choose Move to Trash from the dropdown menu.
  5. Empty the Trash to ensure the application is completely removed.
remove visual studio code app

Step 3: Delete VSCode support folders and files

After removing the Code application, the next crucial step is eliminating any remaining files and leftovers to ensure a complete cleanup.

Follow these steps:

  1. Open Finder on your Mac.
  2. In the menu at the top of the screen, click the Go menu and then Go to Folder… or use the shortcut Shift + Command (⌘) + G to access the search box.
  3. One by one, enter the following paths into the search box to locate and remove VSCode’s associated files:
    • ~/Library/Preferences/com.microsoft.VSCode.plist
    • ~/Library/Caches/com.microsoft.VSCode/
    • ~/Library/Logs/VSCode/
  4. Empty the Trash to delete all related data permanently.
delete vscode associated files and folders
Note: To remove all VS Code configuration files, you can delete the user data folders Code and ~/.vscode.

Manually removing VSCode involves more than just deleting the application itself. These steps remove all related data, keeping your Mac clean and clutter-free.

Use Terminal to uninstall VS Code from Mac

Those who prefer a more technical approach can use Terminal commands to uninstall the program from your Mac.

This method allows precise control over the removal process and ensures all associated files are completely deleted.

  1. Open the Terminal application on your Mac.
  2. Ensure that all processes related to VS Code are terminated to avoid interference during removal. Type the following command and press Enter:
sudo killall "Visual Studio Code"
  1. Use the following command to remove the Visual Studio Code application:
sudo rm -rf /Applications/Visual\ Studio\ Code.app
  1. Execute the following commands one by one to remove VS Code-associated directories:
rm -rf ~/Library/Application\ Support/Code
rm -rf ~/Library/Preferences/com.microsoft.VSCode.plist
rm -rf ~/Library/Caches/com.microsoft.VSCode
rm -rf ~/Library/Logs/VSCode
  1. To finalize the uninstallation process, use the following command:
sudo rm -rf ~/.Trash/*

Once you have executed these commands, Visual Studio Code and its associated data will be completely uninstalled from your machine.

Note: If you installed Visual Studio Code using a package manager like apt-get, you can easily remove it by running the command sudo apt-get remove code in your terminal. Here, code refers to the name of the VS Code Debian package. This command ensures the application and its associated files are uninstalled cleanly from your system.

Reinstall VSCode on your Mac

If you need to reinstall Visual Studio Code (VS Code) on your Mac after uninstallation, follow these steps to get the setup right:

  1. Visit the official download page provided by Microsoft. Select the Mac version to download the installer. Note that different Code packages may be available for download.
  2. Once the download is complete, open the file. Then, drag the Code icon to the Applications folder to install the application.
  3. Open Visual Studio Code and follow the initial prompts to configure the program according to your needs.
  4. After launching, you can install any extensions you need by navigating to the Extensions view in the sidebar.

Reinstalling Visual Studio is straightforward and allows you to customize your development environment, ensuring it meets your current needs.

Summary

Successfully uninstalling Visual Studio Code from your macOS can be accomplished in several ways, whether manually, using Terminal commands, or with the help of SpyHunter.

This article provides a comprehensive guide to thoroughly remove all associated files and configurations, keeping your computer clean and efficient. If you need to reinstall VS Code, the process is simple: download the installer from Microsoft and follow the setup instructions.

For further guidance on managing your applications, check out our articles on how to uninstall Visual Studio and how to uninstall a Mac application.

Share this post on your favorite social media
Keep Your Mac Fast and Secure
Optimize your Mac and stay malware-free with SpyHunter

For a better understanding of our policies, please review our Free Trial Offer below, EULA, and Privacy/Cookie Policy.

SpyHunter Free Trial: Important Terms & Conditions

The SpyHunter Trial version includes, for one device, a one-time 7-day Trial period for SpyHunter 5 Pro (Windows) or SpyHunter for Mac, offering comprehensive malware detection and removal functionality, high-performance guards to actively protect your system from malware threats, and access to our technical support team via the SpyHunter HelpDesk. You will not be charged upfront during the Trial period, although a credit card is required to activate the Trial. (Prepaid credit cards, debit cards, and gift cards are not accepted under this offer.) The requirement for your payment method is to help ensure continuous, uninterrupted security protection during your transition from a Trial to a paid subscription should you decide to purchase. Your payment method will not be charged a payment amount upfront during the Trial, although authorization requests may be sent to your financial institution to verify that your payment method is valid (such authorization submissions are not requests for charges or fees by EnigmaSoft but, depending upon your payment method and/or your financial institution, may reflect on your account availability). You can cancel your Trial by contacting EnigmaSoft’s payment processor (identified in your confirmation email) or EnigmaSoft directly no later than two business days before the 7-day Trial period expires to avoid a charge coming due and being processed immediately after your Trial expires. If you decide to cancel during your Trial, you will immediately lose access to SpyHunter. If, for any reason, you believe a charge was processed that you did not wish to make (which could occur based on system administration, for example), you may also cancel and receive a full refund for the charge any time within 30 days of the date of the purchase charge. See FAQs.

At the end of the Trial, you will be billed upfront immediately at the price and for the subscription period as set forth in the offering materials and registration/purchase page terms (which are incorporated herein by reference; pricing may vary by country per purchase page details) if you have not timely canceled. Pricing typically starts at $72 for 3 months (SpyHunter Pro Windows) and $42 for 3 months (SpyHunter for Mac). Your purchased subscription will be automatically renewed in accordance with the registration/purchase page terms, which provide for automatic renewals at the then applicable standard subscription fee in effect at the time of your original purchase and for the same subscription time period, provided you’re a continuous, uninterrupted subscription user. Please see the purchase page for details. Trial subject to these Terms, your agreement to EULA/TOS, Privacy/Cookie Policy, and Discount Terms. If you wish to uninstall SpyHunter, learn how.

For payment on the automatic renewal of your subscription, an email reminder will be sent to the email address you provided when you registered before your next payment date. At the onset of your trial, you will receive an activation code that is limited to use for only one Trial and for only one device per account. Your subscription will automatically renew at the price and for the subscription period in accordance with the offering materials and registration/purchase page terms (which are incorporated herein by reference; pricing may vary by country per purchase page details), provided that you are a continuous, uninterrupted subscription user. For paid subscription users, if you cancel, you will continue to have access to your product(s) until the end of your paid subscription period. If you wish to receive a refund for your then current subscription period, you must cancel and apply for a refund within 30 days of your most recent purchase, and you will immediately stop receiving full functionality when your refund is processed.

For CALIFORNIA CONSUMERS, please see the notice provisions:
NOTICE TO CALIFORNIA CONSUMERS: Per the California Automatic Renewal Law, you may cancel a subscription as follows:

  1. Go to www.enigmasoftware.com and click the "Login" button at the top right corner.
  2. Log in with your username and password.
  3. In the navigation menu, go to "Order/Licenses." Next to your order/license, a button is available to cancel your subscription if applicable. Note: If you have multiple orders/products, you will need to cancel them on an individual basis.

Should you have any questions or problems, you can contact our EnigmaSoft support team by phone at +1 (888) 360-0646 (USA Toll-Free) / +353 76 680 3523 (Ireland/International) or by email at support@enigmasoftware.com.
How do you cancel a SpyHunter Trial? If your SpyHunter Trial was registered via MyCommerce, you can cancel the trial via MyCommerce by logging into the MyAccount section of MyCommerce (see your confirmation email for further details). You can also contact MyCommerce by phone or email to cancel. To contact MyCommerce via phone, you can call +1-800-406-4966 (USA Toll-Free) or +1-952-646-5022 (24x7x356). You can contact MyCommerce by e-mail at ordersupport@mycommerce.com. You can easily identify if your trial was registered via MyCommerce by checking the confirmation emails that were sent to you upon registration. Alternatively, all users may also contact EnigmaSoft Limited directly. Users can contact our technical support team by emailing support@enigmasoftware.com, opening a ticket in the SpyHunter HelpDesk, or calling +1 (888) 360-0646 (USA) / +353 76 680 3523 (Ireland/International). You can access the SpyHunter HelpDesk from SpyHunter's main screen. To open a support ticket, click on the "HelpDesk" icon. In the window that appears, click the "New Ticket" tab. Fill out the form and click the "Submit" button. If you are unsure of what "Problem Type" to select, please choose the "General Questions" option. Our support agents will promptly process your request and respond to you.

———

SpyHunter Purchase Details
You also have the choice of subscribing to SpyHunter immediately for full functionality, including malware removal and access to our support department via our HelpDesk, typically starting at $42 for 3 months (SpyHunter Basic Windows) and $42 for 3 months (SpyHunter for Mac) in accordance with the offering materials and registration/purchase page terms (which are incorporated herein by reference; pricing may vary by country per purchase page details). Your subscription will automatically renew at the then applicable standard subscription fee in effect at the time of your original purchase subscription and for the same subscription time period, provided you’re a continuous, uninterrupted subscription user and for which you will receive a notice of upcoming charges before the expiration of your subscription. Purchase of SpyHunter is subject to the terms and conditions on the purchase page, EULA/TOS, Privacy/Cookie Policy and Discount Terms.

———

General Terms
Any purchase for SpyHunter under a discounted price is valid for the offered discounted subscription term. After that, the then applicable standard pricing will apply for automatic renewals and/or future purchases. Pricing is subject to change, although we will notify you in advance of price changes.
All SpyHunter versions are subject to your agreeing to our EULA/TOS, Privacy/Cookie Policy, and Discount Terms. Please also see our FAQs and Threat Assessment Criteria. If you wish to uninstall SpyHunter, learn how.