Get started using Visual Studio Code with Windows Subsystem for Linux

Nasheayahu 40 Reputation points
2023-12-05T19:06:46.22+00:00

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 for business Windows Client for IT Pros User experience Other
Developer technologies Visual Studio Other
0 comments No comments
{count} votes

Accepted answer
  1. Tianyu Sun-MSFT 34,436 Reputation points Microsoft External Staff
    2023-12-06T03:00:19.8333333+00:00

    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.

    Sincerely,

    Tianyu


    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.