How to call VS Code Editor from terminal / command line

前端 未结 21 1434
别那么骄傲
别那么骄傲 2020-12-04 06:22

The question says it all.

How can I open VS Code editor from

  • windows cmd
  • linux and mac terminal

e.g. for notepad++ I write

21条回答
  •  伪装坚强ぢ
    2020-12-04 06:40

    When installing on Windows, you will be prompted to add VS Code to your PATH.

    I was trying to figure out how to open files with VS Code from the command line and I already had the capability - I just forgot I had already added it. You might already have it installed - check by navigating to a folder you want to open and running the command code . to open that folder.

提交回复
热议问题