How to make code command of vscode available for all users

Thor Pfosten 0 Reputation points
2023-02-08T16:45:55.7633333+00:00

Hi,

In order to install visual studio code I downloaded VSCodeUserSetup-x64-1.66.0 and installed the software by clicking this file. When I a WSL - Shell I am logged in as root. I am able to open a project in vsc by

/path/to/folder # code .

in the folder of the project. However this does not work for other user. Say, I make a switch user in the wsl to my own user I get

vscode

Can you get me startet how to make the code command available for all users ?

Thanks a lot !

Best,

Alice

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
38,833 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 28,661 Reputation points Microsoft Vendor
    2023-02-09T02:34:03.5133333+00:00

    Hi @Thor Pfosten, 

    Welcome to Microsoft Q&A! 

    You are using Visual Studio Code, which is different from Visual Studio. The tag “Visual Studio” is related to Visual Studio, for more questions about Visual Studio Code, you can post it to the Stack Overview tagged visual-studio-code forum or GitHub repository where you would get professional support for this product.

    Thanks for your understanding. 

    Sincerely,

    Anna


    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.

    0 comments No comments

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.