Run / Open VSCode from Mac Terminal

后端 未结 16 1196
忘了有多久
忘了有多久 2020-12-07 07:01

I\'d like to run / open Visual Studio Code from the Mac OSX Terminal by running this command code .. I found instructions here:

https://code.visualstud

16条回答
  •  醉话见心
    2020-12-07 07:31

    Sometimes, just adding the shell command doesn't work. We need to check whether visual studio code is available in "Applications" folder or not. That was the case for me.

    The moment you download VS code, it stays in "Downloads" folder and terminal doesn't pick up from there. So, I manually moved my VS code to "Applications" folder to access from Terminal.

    Step 1: Download VS code, which will give a zipped folder.

    Step 2: Run it, which will give a exe kinda file in downloads folder.

    Step 3: Move it to "Applications" folder manually.

    Step 4: Open VS code, "Command+Shift+P" and run the shell command.

    Step 5: Restart the terminal.

    Step 6: Typing "Code ." on terminal should work now.

提交回复
热议问题