Sublime Text from Command Line

前端 未结 27 2217
时光说笑
时光说笑 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-27 09:28

    If you don't want to change your path you can associate files with sublime. So right click on the file, click properties, then click opens with sublime text.

    From the command line: myFile.py

    Will open the file in sublime. I suppose this saves you about five keystrokes.

提交回复
热议问题