Get started using Visual Studio Code with Windows Subsystem for Linux

Nasheayahu 40 Reputation points

Before walking through Get started using Visual Studio Code with Windows Subsystem for Linux I had already installed VS Code and unaware of,

Install VS Code and the WSL extension

When prompted to Select Additional Tasks during installation, be sure to check the Add to PATH option so you can easily open a folder in WSL using the code command.

what are the steps needed to accomplish this now after the fact?

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,142 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,863 questions
0 comments No comments
{count} votes

Accepted answer
  1. Tianyu Sun-MSFT 29,346 Reputation points Microsoft Vendor

    Hello @Nasheayahu ,

    Welcome to Microsoft Q&A forum.

    You can search "Edit the system environment variables" in the Windows Search Box, find and open it. Click Environment Variables > In "User variables for Administrator" find "Path", click it, select Edit, click New, add following C:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code\bin(you may need to modify this path if you customized the installation location of VS Code, or the username isn't "Administrator"), click OK and close the windows.

    User's image

    Besides, you can also try to uninstall VS Code and reinstall VS Code but this time select the Add to PATH option to add the Path for VS Code.

    BTW, since VS Code is currently not supported in the Microsoft Q&A forum, you can post VS Code related questions on Stack Overflow – visual studio code for further assistance.



    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful