Sublime Text from Command Line

前端 未结 27 2119
时光说笑
时光说笑 2020-11-27 08:37

I installed Sublime Text and wanted to know how to open rb files in it from the terminal. I saw What is the command to make Sublime Text my core editor? and I s

27条回答
  •  情深已故
    2020-11-27 09:25

    I added this to my PowerShell profile:

    Set-Alias subl 'C:\Program Files\Sublime Text 2\sublime_text.exe'
    

    Modify this as needed for Sublime Text 3 (or any future versions).

提交回复
热议问题