Reputation: 65233
I have both Ubuntu and Debian installed for WSL. When I open a WSL workspace using VS Code remote development, it always opens Ubuntu. How can I open a workspace under the Debian install using WSL in VS Code?
Upvotes: 6
Views: 7174
Reputation: 15991
Click the "remote button" in the bottom left
Choose New Window using Distro...
Pick your distro!
Upvotes: 5
Reputation: 65233
The VS Code Remote - WSL extension always uses the default WSL distro. You can change the default distro using the wsl
command (wslconfig
on earlier windows versions):
# List the available distributions
wsl --list
# Set the default version to debian
wsl --setdefault debian
After changing the default for WSL, make sure to restart VS Code
Upvotes: 14