How to call VS Code Editor from terminal / command line

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

    Step 1: create a .bat file with the name you want e.g vscode.bat Step 2: Write your path to Visual Studio Code Step 3: Save it in C:\Windows\System32 directory

    **
    C:
    cd Users\Bino\AppData\Local\Programs\Microsoft VS Code
    Code.exe**
    

    Step 4: You can call visual studio code from any where by typing "vscode" which is the name of your bat file

提交回复
热议问题