“code .” Not working in Command Line for Visual Studio Code on OSX/Mac

前端 未结 25 2389
日久生厌
日久生厌 2020-12-12 09:13

The command \"code .\" doesn\'t work in this manual?

All the other steps before that worked. How can I call the Visual Studio Code in OSX terminal?

         


        
25条回答
  •  悲哀的现实
    2020-12-12 09:33

    Here are the steps which I followed to make it working on MAC:

    Install "Shell" extension from VSCode:

    Restart VSCode.

    Press F1 when VSCode is opened.

    Type "Shell" and select the following option: Shell Command: Install 'code' command in PATH command

    That will give you the following message: Shell command 'code' successfully installed in PATH.

    Running "which code" command will give you a proof the code command working now:

提交回复
热议问题