How to open Sublime from PowerShell - Women Who Code.
How to open Sublime from console on Windows
sublime from console, sublime on windows, sublime powershell
post-template-default,single,single-post,postid-51857,single-format-standard,qode-core-1.0.1,ajax_fade,page_not_loaded,,capri child-child-ver-1.0.0,capri-ver-1.6, vertical_menu_with_scroll,smooth_scroll,grid_1200,blog_installed,wpb-js-composer js-comp-ver-4.12.1,vc_responsive

How to open Sublime from PowerShell

How to open Sublime from PowerShell

Starting from 2014, Sublime includes a command line helper — subl.exe, located in Sublime’s installation folder C:\Program Files\Sublime Text 3.
Copy it into a folder included in the system path. For example:

Copy subl.exe from
C:\Program Files\Sublime Text 3

After that you can open Sublime right from the console by typing ‘subl’.
To open a particular file, type something like:

subl file.rb

The other way to make Sublime open from console is to modify your system PATH variable to include sublime’s instalation folder, but this is much more complicated.

Sublime Text from Command Line (Win7)

2 комментария
  • Good article. Found it worked on Windows 10.

    Oddly, I had to edit the Path variable to include the whole Sublime Text 3 directory, not just subl.exe for it to work.

    14.05.2018 at 03:18
  • Jack Spyder

    For setting PATH

    hit start, type «edit the system environment variables» (should come up after a few characters)

    press the environment variables button, double click path in the top box.

    click new, and add «C:\Program Files\Sublime Text 3»
    and you’re done. Obviously if you’ve got sublime installed somewhere else, you need to give it the appropriate directory.

    10.07.2018 at 17:59

Post a Comment