Как полностью удалить visual studio code
I need to clean install vscode on my mac. I opened the terminal and removed the .vscode/ from ~ . I also delete the Visual Studio Code.app/ from / . However, after deleting all that and download a fresh copy, I installed and open the editor and the editor remembered the last project I had. For me, that means that it is something else I need to delete but I can't find it. I went to the documentation but can't find anything about uninstalling the editor. Does anyone know how to completely uninstall VSCode from mac?
What I have tried
Following this instructions and new installation of vscode keeps remembering the last project I opened.
8 Answers 8
Here are all the places where VSCode stores stuff on Mac OS X, besides the Visual Studio Code.app itself, which is in your Applications folder:
Update (Feb 2020): There are potentially also hidden extension directories in your home directories. To get rid of everything make sure you look for those too. They start with .vscode- .
Please run this command with care. Maybe you want to keep extension directories.
I am using 1.36.1 ad syntax highlighting suddenly stopped working for no reason. I used this to reset my VS Code to default settings without uninstalling and syntax highlighting is back
I see another folder not listed above. It's called .vscode-oss . I found it under Users/your-user-name .
You have a point. I don't have that particular folder, but oder folders related so extensions of some sorts ( .vscode-cpptools/ .vscode-react-native/ in my case)
I was having so much frustration with getting Omnisharp to work after it suddenly stopped functioning. After a couple weeks of searching, trying things, and complaining to the Omnisharp devs, this was the only thing that finally worked to get it going again. Thank you
The solution to my problem was to cd to the following path. /Users//Library/Application\ Support and delete the folder called Code . That folder contains all the setting and is not overwrite with a new installation. Looking through the entire file structure, VSCode name folder different. Sometimes folders are called .vscode/ , or code/ , or Visual Studio Code.app .
Wrong. There is also .vscode at the root directory and a file other files in other places as pointed out by other answers
This worked for me ( VS Code 1.30 with MacOS - High Sierra 10.13.6 )
If using a 3rd-party application is OK, check out App Cleaner.
It basically does the same thing as the other answer, but via a GUI and you don't have to manually remove all files/dirs one-by-one. Just drag VS Code from the Applications folder into App Cleaner, then it will find all the related files for you, and then you just have to click on the Remove button.
UPDATE (VS Code 1.46)
Based on a recent comment, even after using AppCleaner, re-installing VS Code seems to still "remember" your previous extensions. This is caused by a ~/.vscode/extensions folder, which for some reason, AppCleaner can't "see" and is not listed in its UI. You will have to remove this folder manually.
На этой странице приведены пошаговые инструкции по удалению Visual Studio, интегрированного набора средств для эффективной работы разработчиков.
Этот раздел относится к Visual Studio в Windows. Для Visual Studio для Mac см. раздел Удаление Visual Studio для Mac.
Если у вас возникли проблемы с экземпляром Visual Studio, воспользуйтесь средством восстановления. Дополнительные сведения см. в статье Восстановление Visual Studio.
Если вам требуется изменить расположение каких-либо файлов Visual Studio, это можно сделать, не удаляя текущий экземпляр. Дополнительные сведения см. в статье Выбор расположения установки в Visual Studio.
Найдите установщик Visual Studio на своем компьютере.
Например, на компьютере с юбилейным обновлением или более поздней версией Windows 10 нажмите кнопку Пуск и прокрутите список до буквы V, где расположен пункт Visual Studio Installer.
На некоторых компьютерах установщик Visual Studio может быть указан под буквой "M" — для Microsoft Visual Studio.
Кроме того, Visual Studio Installer можно найти в следующем расположении: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe
В установщике найдите установленный у вас выпуск Visual Studio. Затем выберите Дополнительно и Удалить.
Если в будущем вы захотите снова установить Visual Studio 2017, запустите Visual Studio Installer и выберите Установить на экране выбора.
Удаление установщика Visual Studio
Чтобы полностью удалить все установки Visual Studio 2017 и Visual Studio Installer с компьютера, удалите их в окне "Программы и компоненты".
- В Windows 10 или более поздней версии введите Программы и компоненты в поле "Введите текст для поиска".
- Найдите Microsoft Visual Studio 2017 (или Visual Studio 2017).
- Выберите Удалить.
- Затем найдите Microsoft Visual Studio Installer.
- Выберите Удалить.
Найдите Visual Studio Installer на своем компьютере.
В меню "Пуск" Windows можно выполнить поиск по слову "установщик".
Кроме того, Visual Studio Installer можно найти в следующем расположении:
C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe
Для продолжения работы может потребоваться обновление самого установщика. Если это так, следуйте инструкциям на экране.
В установщике найдите установленный у вас выпуск Visual Studio. Затем выберите Дополнительно и Удалить.
Если в будущем вы передумаете и захотите снова установить Visual Studio 2019, снова запустите Visual Studio Installer, выберите вкладку Доступно, выберите выпуск Visual Studio, который вы хотите установить, а затем нажмите Установка.
Удаление установщика Visual Studio
Чтобы удалить все установки Visual Studio 2019 и Visual Studio Installer с компьютера, удалите их в окне "Программы и компоненты".
- В Windows 10 или более поздней версии введите Программы и компоненты в поле "Введите текст для поиска".
- Найдите Visual Studio 2019.
- Выберите Удалить.
- Затем найдите Microsoft Visual Studio Installer.
- Выберите Удалить.
Найдите Visual Studio Installer на своем компьютере.
В меню "Пуск" Windows можно выполнить поиск по слову "установщик".
Кроме того, Visual Studio Installer можно найти в следующем расположении:
C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe
Для продолжения работы может потребоваться обновление самого установщика. Если это так, следуйте инструкциям на экране.
В установщике найдите установленный у вас выпуск Visual Studio. Затем выберите Дополнительно и Удалить.
Если в будущем вы передумаете и захотите снова установить Visual Studio 2022, снова запустите Visual Studio Installer, выберите вкладку Доступно, выберите выпуск Visual Studio, который хотите установить, а затем нажмите Установить.
Удаление установщика Visual Studio
Чтобы удалить все установки Visual Studio 2022 и Visual Studio Installer с компьютера, удалите их в окне "Программы и компоненты".
- В Windows 10 или более поздней версии введите Программы и компоненты в поле "Введите текст для поиска".
- Найдите Visual Studio 2022.
- Выберите Удалить.
- Затем найдите Microsoft Visual Studio Installer.
- Выберите Удалить.
Удаление всех файлов
Если произошла неустранимая ошибка и вы не можете удалить Visual Studio с помощью предыдущих инструкций, есть вариант, который можно использовать в качестве последнего средства. Дополнительные сведения о том, как полностью удалить все файлы установки Visual Studio и информацию о продукте, см. в этой статье.
Поддержка или устранение неполадок
Иногда возникают проблемы. Если установить Visual Studio не удается, воспользуйтесь пошаговыми указаниями в статье Устранение неполадок при установке и обновлении Visual Studio.
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.
- 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, 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.).
- 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:
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.
This page walks you through uninstalling Visual Studio, our integrated suite of productivity tools for developers.
If you're having trouble with your instance of Visual Studio, try the Repair Visual Studio tool.
To change the location for some of your Visual Studio files, it's possible to do so without uninstalling your current instance as described in Select the installation locations.
Find the Visual Studio Installer on your computer.
For example, on a computer running Windows 10 Anniversary Update or later, select Start and scroll to the letter V, where it's listed as Visual Studio Installer.
On some computers, the Visual Studio Installer might be listed under the letter "M" as the Microsoft Visual Studio Installer.
Alternatively, you can find the Visual Studio Installer in the following location: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe
In the installer, look for the edition of Visual Studio that you installed. Next, choose More, and then choose Uninstall.
Click OK to confirm your choice.
If you change your mind later and want to reinstall Visual Studio 2017, start the Visual Studio Installer again, and then select Install from the selection screen.
Uninstall Visual Studio
To completely remove all installations of Visual Studio 2017 and the Visual Studio Installer from your machine, uninstall it from Apps & Features.
- In Windows 10 or later, type Apps and Features in the "Type here to search" box.
- Find Microsoft Visual Studio 2017 (or, Visual Studio 2017).
- Choose Uninstall.
- Then, find Microsoft Visual Studio Installer.
- Choose Uninstall.
Find the Visual Studio Installer on your computer.
In the Windows Start menu, you can search for "installer".
You can also find the Visual Studio Installer in the following location:
C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe
You might have to update the installer before continuing. If so, follow the prompts.
In the installer, look for the edition of Visual Studio that you installed. Next, choose More, and then choose Uninstall.
Click OK to confirm your choice.
If you change your mind later and want to reinstall Visual Studio 2019, start the Visual Studio Installer again, choose the Available tab, choose the edition of Visual Studio that you want to install, and then select Install.
Uninstall Visual Studio
To remove all installations of Visual Studio 2019, and the Visual Studio Installer from your machine, uninstall it from Apps & Features.
- In Windows 10 or later, type Apps and Features in the "Type here to search" box.
- Find Visual Studio 2019.
- Choose Uninstall.
- Then, find Microsoft Visual Studio Installer.
- Choose Uninstall.
Find the Visual Studio Installer on your computer.
In the Windows Start menu, you can search for "installer".
You can also find the Visual Studio Installer in the following location:
C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe
You might have to update the installer before continuing. If so, follow the prompts.
In the installer, look for the edition of Visual Studio that you installed. Next, choose More, and then choose Uninstall.
Click OK to confirm your choice.
If you change your mind later and want to reinstall 2022, start the Visual Studio Installer again, choose the Available tab, choose the edition of Visual Studio that you want to install, and then select Install.
Uninstall Visual Studio
To remove all installations of Visual Studio 2022, and the Visual Studio Installer from your machine, uninstall it from Apps & Features.
- In Windows 10 or later, type Apps and Features in the "Type here to search" box.
- Find Visual Studio 2022.
- Choose Uninstall.
- Then, find Microsoft Visual Studio Installer.
- Choose Uninstall.
Remove all with InstallCleanup.exe
Use the InstallCleanup tool only as a last resort if repair or uninstall fail. This tool might uninstall features from other Visual Studio installations or other products, which then might also need to be repaired or reinstalled.
If you experience a catastrophic error and can't repair or uninstall Visual Studio, you can run the InstallCleanup.exe tool to remove installation files and product information for all installed instances of Visual Studio 2017, Visual Studio 2019, or Visual Studio 2022.
Here's how to run the InstallCleanup.exe tool:
Close the Visual Studio Installer.
Open an administrator command prompt. To open an administrator command prompt, follow these steps:
- Type cmd in the "Type here to search" box.
- Right-click Command Prompt, and then choose Run as administrator.
Enter the full path of the InstallCleanup.exe tool and add the command-line switch you prefer. By default, the path of the tool is as follows. The double quotes enclose a command containing spaces:
If you can't find InstallCleanup.exe under the Visual Studio Installer directory, which is always located at %ProgramFiles(x86)%\Microsoft Visual Studio , here's what to do next. Follow the instructions to install Visual Studio. Then, when the workload selection screen is displayed, close the window and follow the steps on this page again.
Support or troubleshooting
Sometimes, things can go wrong. If your Visual Studio installation fails, see Troubleshoot Visual Studio installation and upgrade issues for step-by-step guidance.
На этой странице приведены пошаговые инструкции по удалению Visual Studio, интегрированного набора средств для эффективной работы разработчиков.
Этот раздел относится к Visual Studio в Windows. Для Visual Studio для Mac см. раздел Удаление Visual Studio для Mac.
Если у вас возникли проблемы с экземпляром Visual Studio, воспользуйтесь средством восстановления. Дополнительные сведения см. в статье Восстановление Visual Studio.
Если вам требуется изменить расположение каких-либо файлов Visual Studio, это можно сделать, не удаляя текущий экземпляр. Дополнительные сведения см. в статье Выбор расположения установки в Visual Studio.
Найдите установщик Visual Studio на своем компьютере.
Например, на компьютере с юбилейным обновлением или более поздней версией Windows 10 нажмите кнопку Пуск и прокрутите список до буквы V, где расположен пункт Visual Studio Installer.
На некоторых компьютерах установщик Visual Studio может быть указан под буквой "M" — для Microsoft Visual Studio.
Кроме того, Visual Studio Installer можно найти в следующем расположении: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe
В установщике найдите установленный у вас выпуск Visual Studio. Затем выберите Дополнительно и Удалить.
Если в будущем вы захотите снова установить Visual Studio 2017, запустите Visual Studio Installer и выберите Установить на экране выбора.
Удаление установщика Visual Studio
Чтобы полностью удалить все установки Visual Studio 2017 и Visual Studio Installer с компьютера, удалите их в окне "Программы и компоненты".
- В Windows 10 или более поздней версии введите Программы и компоненты в поле "Введите текст для поиска".
- Найдите Microsoft Visual Studio 2017 (или Visual Studio 2017).
- Выберите Удалить.
- Затем найдите Microsoft Visual Studio Installer.
- Выберите Удалить.
Найдите Visual Studio Installer на своем компьютере.
В меню "Пуск" Windows можно выполнить поиск по слову "установщик".
Кроме того, Visual Studio Installer можно найти в следующем расположении:
C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe
Для продолжения работы может потребоваться обновление самого установщика. Если это так, следуйте инструкциям на экране.
В установщике найдите установленный у вас выпуск Visual Studio. Затем выберите Дополнительно и Удалить.
Если в будущем вы передумаете и захотите снова установить Visual Studio 2019, снова запустите Visual Studio Installer, выберите вкладку Доступно, выберите выпуск Visual Studio, который вы хотите установить, а затем нажмите Установка.
Удаление установщика Visual Studio
Чтобы удалить все установки Visual Studio 2019 и Visual Studio Installer с компьютера, удалите их в окне "Программы и компоненты".
- В Windows 10 или более поздней версии введите Программы и компоненты в поле "Введите текст для поиска".
- Найдите Visual Studio 2019.
- Выберите Удалить.
- Затем найдите Microsoft Visual Studio Installer.
- Выберите Удалить.
Найдите Visual Studio Installer на своем компьютере.
В меню "Пуск" Windows можно выполнить поиск по слову "установщик".
Кроме того, Visual Studio Installer можно найти в следующем расположении:
C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe
Для продолжения работы может потребоваться обновление самого установщика. Если это так, следуйте инструкциям на экране.
В установщике найдите установленный у вас выпуск Visual Studio. Затем выберите Дополнительно и Удалить.
Если в будущем вы передумаете и захотите снова установить Visual Studio 2022, снова запустите Visual Studio Installer, выберите вкладку Доступно, выберите выпуск Visual Studio, который хотите установить, а затем нажмите Установить.
Удаление установщика Visual Studio
Чтобы удалить все установки Visual Studio 2022 и Visual Studio Installer с компьютера, удалите их в окне "Программы и компоненты".
- В Windows 10 или более поздней версии введите Программы и компоненты в поле "Введите текст для поиска".
- Найдите Visual Studio 2022.
- Выберите Удалить.
- Затем найдите Microsoft Visual Studio Installer.
- Выберите Удалить.
Удаление всех файлов
Если произошла неустранимая ошибка и вы не можете удалить Visual Studio с помощью предыдущих инструкций, есть вариант, который можно использовать в качестве последнего средства. Дополнительные сведения о том, как полностью удалить все файлы установки Visual Studio и информацию о продукте, см. в этой статье.
Поддержка или устранение неполадок
Иногда возникают проблемы. Если установить Visual Studio не удается, воспользуйтесь пошаговыми указаниями в статье Устранение неполадок при установке и обновлении Visual Studio.
Читайте также: