“code .” command is not working

后端 未结 6 2126
难免孤独
难免孤独 2021-01-05 05:06

I get this error:

code . is not recognised as an external or internal command, operable program or batch file

6条回答
  •  天命终不由人
    2021-01-05 05:23

    It looks as if you do not have the code program installed. You can open the Command Palette,

    • Mac: ShiftCmdP
    • Windows/Linux: ShiftCtrlP

    And search "install command", which should return this as one of the options:

    • Shell Command: Install 'code' command in PATH

    Run that, and it should install the code command, after which you should be able to use it.

提交回复
热议问题