How to call VS Code Editor from terminal / command line

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

    Open command line and type:

    cd your_folder_path
    code.cmd . 
    

    or

    code.cmd your_folder_path
    

    It will open your folder in Visual Studio Code. Make Sure, you are inside the correct folder after executing "cd your_folder_path" command.

提交回复
热议问题