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

ayi
Site Admin
Messages : 13176
Inscription : mer. avr. 22, 2026 5:21 pm

Re: Sublime Text from Command Line

Message par ayi »

From build 3065 (Release Date: 29 August 2014) onwards Sublime text includes a ligne de commande helper, nameley subl.exe. It is at sublime’s installation folder: copy it in to a folder included in the system path.

Par exemple, 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 »