How to call VS Code Editor from terminal / command line

前端 未结 21 1479
别那么骄傲
别那么骄傲 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:41

    This will work. This is your directory name "Directory_Name"

     sudo code --user-data-dir="Directory_Name"
    

提交回复
热议问题