visual studio code “Shell Command: Install 'code' command in PATH command.”

后端 未结 10 749
感动是毒
感动是毒 2020-12-31 01:57

I just started with Angular. I installed angular/cli and added a project. Now I want to use visual studio code.

I Open the Command Palette (Ctrl +

10条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-31 02:43

    I had this same problem. Long story short, I uninstalled VS Code, re-downloaded the installer package and ran that. Sure enough, one of the install screens has a checkbox option to add to the PATH variable and this option is unchecked by default.

    Checked the box, finished the install, works fine.

    Of course it's perfectly valid to modify the PATH variable after install, but I think it's important to clarify that (at least version 1.23.0) does not update PATH by default. Most of the threads I looked at says it does.

提交回复
热议问题