“code .” command is not working

后端 未结 6 2091
难免孤独
难免孤独 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:36

    I found it. In the "search" type environment variables then click on the "edit system environment variables".

    Inside Environment variables->Path put C:\Users\{your_username}\AppData\Local\Programs\Microsoft VS Code\bin.

    Go to the project folder and open the cmd with it typing in the location bar and then type code .

    That will do.

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题