Удаление Visual Studio Code с системы Linux
Я недано установил Visual Studio Code (com.visualstudio.code) с помощью Flatpak с репозитория Flathub, позже я захотел удалить его (Visual Studio Code), удалил, но файлы ещё остались в системе Linux (Linux Mint), в папке /var/lib/flatpak/.removed/. У меня появился вопрос. Безопасно удалять там файлы и папки? В интернете не написано на эту тему ничего
Отслеживать
задан 18 дек 2022 в 17:00
16 2 2 бронзовых знака
Ну раз папка скрытая и называется соответствуююще — чисть без проблем. Скорее всего эта папка нужна для того, чтобы не качать заново дистр, если пользователь передумает и захочет поставить заново.
19 дек 2022 в 21:50
How do I remove VS Code & settings from Ubuntu?
Or just move/delete the folders ~/.config/Code and ~/.vscode .
You may want to backup any code snippets in ~/.config/Code/User/snippets/
answered Aug 13, 2016 at 0:23
Louis Waweru Louis Waweru
24.2k 39 39 gold badges 134 134 silver badges 200 200 bronze badges
A+. Did the trick & fixed my VSCode bug. For posterity, I’ll add that I also deleted ~/.vscode . Not sure if that mattered, but didn’t seem to hurt anything.
Aug 13, 2016 at 0:38
^^to clarify, I deleted the entire ~/.config/Code folder, not just the settings.json .
Aug 13, 2016 at 0:45
Remove software
- If you installed via Snap: $sudo snap remove vscode
- If you installed via apt: $sudo apt-get purge code
- If you installed via Ubuntu Software, open Ubuntu Software, look for the app in the installed category, and click on remove.
Remove settings
$cd ~ && rm -rf .vscode && rm -rf .config/Code
answered Apr 22, 2019 at 18:25
311 2 2 silver badges 5 5 bronze badges
IMHO this should be the accepted answer, worked perfectly, also very precise
Apr 26, 2019 at 10:27
I had to run $sudo snap remove code (not vscode).
Mar 5, 2021 at 8:35
Go to /usr/share and find the installation folder of VS Code, which is code-insiders/ for an insider preview and code for a regular installation. Remove the folder which you don’t find necessary.
Don’t forget to remove the start menu entry in /usr/share/applications/
To remove the application settings go to your home folder and remove the .vscode folder.
Also if you want to backup your user settings before all this, try the settings sync extension.
1,672 10 10 silver badges 25 25 bronze badges
answered Mar 15, 2018 at 4:07
Leela Venkatesh K Leela Venkatesh K
111 3 3 bronze badges
You must log in to answer this question.
- linux
- ubuntu
- visual-studio-code
-
The Overflow Blog
Related
Hot Network Questions
Subscribe to RSS
Question feed
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
Site design / logo © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2023.11.15.1019
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
How do I uninstall Visual Studio Code?
To uninstall vscode in debian distros: sudo apt purge code then remove the plugins by rm -rf /home/
Apr 11, 2022 at 1:50
10 Answers 10
I did it with the following command:
sudo apt purge code
to uninstall the program and then:
sudo apt autoremove
to remove the menu items/shortcuts etc as @Joe suggested.
I hope it helps!
answered Jul 23, 2016 at 7:31
haralambov haralambov
1,414 1 1 gold badge 11 11 silver badges 12 12 bronze badges
Running those commands already removed the shortcut for me. After uninstalling I installed VSCode again but this time via sudo snap install code —classic — snap has more recent versions and keeps it updated automatically.
Apr 21, 2020 at 8:00
This is the top answer but the comment by @Felix on question is what worked for me. Needed to delete those directories!
Jan 30 at 10:41
sudo dpkg --remove visual-studio-code
This will remove the software (including the Dash icon/desktop entry).
I think that this method will leave the configuration information around (if you re-install); there’s also a purge option on dpkg that will remove this information as well.
sudo dpkg --purge visual-studio-code
14.7k 9 9 gold badges 48 48 silver badges 83 83 bronze badges
answered May 13, 2016 at 15:42
M. Shawn Dillon M. Shawn Dillon
221 1 1 silver badge 3 3 bronze badges
Thanks, but I get the following error: dpkg: warning: ignoring request to remove visual-studio-code which isn’t installed . This is driving me crazy, I can see it installed -_-
May 14, 2016 at 2:53
It works for me. But only with code instead of visual-studio-code (code_1.14.0-1499719149_amd64.deb)
Jul 12, 2017 at 8:38
AFAIK on Ubuntu this is practically the same as apt solution (perhaps more low level than APT method). However, I believe this is better solution if you have installed VS code via .deb package originally (e.g. downloaded .deb from VS code web site). This shall be applicable to older Ubuntus. More recent ubuntu allow installing code using snap and removal is better done from app manager.
May 26, 2019 at 16:46
As none of the above answer has been accepted so I am assuming it didn’t solve your problem. If you cannot find it with apt or dpkg then most likely it was installed with snap as was in my case. To remove it just type:
snap remove code
answered Mar 15, 2020 at 12:22
Angsuman Chakraborty Angsuman Chakraborty
351 3 3 silver badges 7 7 bronze badges
I had to update VS Code from the Software Center to uninstall it properly. -_-
After that, this worked perfectly:
sudo apt-get purge code
answered Oct 11, 2016 at 17:46
Kendra Havens Kendra Havens
71 1 1 silver badge 2 2 bronze badges
I had to uninstall it, to update VS Code properly :P.
Jun 15, 2018 at 7:00
After sudo apt-get purge code , I just had to run sudo apt autoremove to remove the menu items/shortcuts and stuff like that.
– user606179
Jul 24, 2019 at 7:51
I was running into the very same problem today. None of the provided answers solved it for me. So I tried:
$ which visual-studio-code /home/tim/.local/share/umake/bin/visual-studio-code
I was having a look at that directory and realized it was a symlink to
/home/tim/.local/share/umake/bin/visual-studio-code -> /home/tim/.local/share/umake/ide/visual-studio-code/bin/code*
So I was able to remove it with
umake ide visual-studio-code --remove
(Note how I use umake ide and not umake web )
Как установить Visual Studio Code на Ubuntu
Visual Studio Code — это современная и очень удобная интегрированная среда разработки от Microsoft написанная на основе платформы Electron и NodeJS. Здесь есть встроенный отладчик кода, поддержка контроля версий с помощью Git, подсветка синтаксиса для множества языков, автодополнение кода, интегрированный терминал, поддержка рефракторинга и сниппеты.
В этой статье мы рассмотрим, как установить Visual Studio Code на Ubuntu 18.04 или более поздних версий. Для этого лучше всего использовать официальный репозиторий от Microsoft. Однако можно также воспользоваться snap-пакетом или центром приложений Ubuntu.
Установка Visual Studio Code на Ubuntu
Для работы репозитория нужно установить несколько пакетов. Для этого выполните команду:
sudo apt install software-properties-common apt-transport-https wget
Затем установите ключ репозитория:
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add —
И добавьте сам репозиторий:
sudo add-apt-repository «deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main»
После этого остается обновить списки пакетов и установить VS Code:
sudo apt update
sudo apt install code
После завершения установки вы можете запустить программу, выполнив в терминале команду code, или через главное меню системы:

Главное окно программы будет выглядеть вот так:

В левой части окна вертикально расположены несколько вкладок для ориентации в интерфейсе программы. На первой вкладке выполняется работа с проектами и файлами. Вторая вкладка позволяет выполнять поиск по открытым проектам. Третья вкладка — система контроля версий. Четвёртая — отладчик, а пятая — установка дополнений.
Также можно установить программу с помощью менеджера пакетов snap. Для этого выполните:
sudo snap install —classic code

А ещё программа есть в центре приложений Ubuntu:

Удаление Visual Studio Code в Ubuntu
Удалять программу надо так, как вы её устанавливали. Если установка Visual Studio Code Ubuntu 18.04 выполнялась из репозитория Microsoft, то для удаления выполните:
sudo apt purge code
Затем можно отключить репозиторий с помощью утилиты Программы и обновления:

А если установка выполнялась через менеджер пакетов snap или центр приложений, то для удаления достаточно выполнить:
sudo snap remove code
Выводы
Теперь у вас есть успешно установленная VS Code Ubuntu 18.04, и вы можете переходить к её настройке, а затем к программированию. Далее вам нужно настроить внешний вид среды, а также установить необходимые дополнения. Но об этом поговорим в следующих статьях.
