skip to Main Content

I recently changed the name of my default wsl distro name using the Windows registry. Now when I call vscode’s command line command code . it opens the folder in the wrong distro. Does anyone know how to change the default –remote location when calling code



  1. Chosen as BEST ANSWER

    To resolve my issue I ended up doing:

    wsl --shutdown in Powershell

    Upon reopening Ubuntu and running code . it opened to the default distro set on wsl

  2. code --set remote.WSL.defaultDistribution your_desired_distro_name

    Replace "your_desired_distro_name" with your desired distro name.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top