How to open Visual Studio Code from the command line on OSX?

后端 未结 24 1132
日久生厌
日久生厌 2020-11-30 16:20

The docs mention an executable called code, but I\'m not sure where I can find that so I can put it on my path. The zip I downloaded from the VSCode site did no

24条回答
  •  抹茶落季
    2020-11-30 17:00

    Note: Only for Windows Users.

    As many folks already suggested ways to open code from command prompt using code . command. This will only open Visual Studio Code Stable build. But If you have downloaded Visual Studio Code Insider build/version (Which has all latest build/features but unstable version) then you need to follow below instructions in windows :

    • Go to Control Panel\System and Security\System. Click on Advanced System Settings
    • Click on Environment Variables
    • Under System Variables tab, Click on Edit for Path Variable
    • Add a new path C:\Users\tsabu\AppData\Local\Programs\Microsoft VS Code Insiders\bin (or) C:\Program Files\Microsoft VS Code Insiders\bin based on location at which you have installed vscode insider in your machine.

      Open a new command prompt and type code-insiders . to open vscode-insider build/version

提交回复
热议问题