Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2810

Remove VS Code in WSL

$
0
0

After typing code . in WSL running Ubuntu 24.04, VS Code automatically installed itself. I am now trying to uninstall it, but cannot find it anywhere. sudo apt purge code, sudo apt-get purge code, sudo dpkg --purge code, and sudo snap remove --purge code all tell me that code was not installed. The same holds for alternative names, incl. vscode and visual-studio-code. When I enter code ., VS Code opens though. It clearly is installed.

I want to keep the Windows version of VS Code, but remove its Linux installation. Do you know how I can do that?

Edit:

To clarify questions in the comments:

  1. I have simply entered code ., nothing else. Unexpectedly, that was enough to trigger an installation. This behavior might be specific to WSL.
  2. snap list tells me that no snaps are installed. Anything installed with sudo snap install --classic should show up there.

Solved:

Using this post, I figured out where it was installed. Apparently, entering code . in WSL modifies the already installed Windows version to be callable from both Windows and Linux.


Viewing all articles
Browse latest Browse all 2810

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>