Sublime Text from Command Line

前端 未结 27 2149
时光说笑
时光说笑 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:40

    You can simply install Notepad Replacer http://www.binaryfortress.com/NotepadReplacer/ what it will do is make sublime your default notepad in Windows and then you can simply use the commands that you generally use to open inbuilt notepad in windows. for example

    `//to open test.txt, just type
    notepad test.txt
    //to open sublime, Type
    notepad`
    

提交回复
热议问题