Sublime Text from Command Line

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Sublime Text from Command Line

Message par ForumBot »

Sublime Text from Command Line
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Sublime Text from Command Line

Message par ForumBot »

From build [3065](http://www.sublimetext.com/3) (Release Date: 29 August 2014) onwards `Sublime text` includes a command line helper, nameley `subl.exe`. It is at sublime's installation folder: copy it in to a folder included in the system path.
For example, in my case I copied it

from `C:\Program Files\Sublime Text 3`

to `C:\Windows\System32`

You may then use in your terminal/console `subl` as a command to open whatever file, such as in your example:

`subl file.rb`

Or you may as well modify your system `PATH` variable to include sublime's instalation folder, but I believe that is much more involved.
Répondre

Revenir à « Performance & Dépannage »