How to open Visual Studio Code from the command line on OSX?

后端 未结 24 1147
日久生厌
日久生厌 2020-11-30 16:20

The docs mention an executable called code, but I\'m not sure where I can find that so I can put it on my path. The zip I downloaded from the VSCode site did no

24条回答
  •  暖寄归人
    2020-11-30 17:10

    link your currentily folders to vscode.

    Windows Registry Editor Version 5.00
    
    ; Directory\Background\shell => on empty space
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\vscode]
    "Icon"="C:\\current-folder-vscode\\Code.exe,0"
    @="VsCode"
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\vscode\command]
    @="C:\\current-folder-vscode\\Code.exe ."
    
    ; Directory\shell => on a folder
    
    [HKEY_CLASSES_ROOT\Directory\shell\vscode]
    @="VsCode"
    "Icon"="C:\\current-folder-vscode\\Code.exe,0"
    
    [HKEY_CLASSES_ROOT\Directory\shell\vscode\command]
    @="C:\\current-folder-vscode\\Code.exe ."
    

提交回复
热议问题