Skip to content

Instantly share code, notes, and snippets.

@lucasprogamer
Created February 20, 2016 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucasprogamer/1b185a6db2e923e9f910 to your computer and use it in GitHub Desktop.
Save lucasprogamer/1b185a6db2e923e9f910 to your computer and use it in GitHub Desktop.
https://scotch.io/tutorials/open-sublime-text-from-the-command-line-using-subl-exe-windows
Adding Sublime to Your PATH
System Properties -> Advanced System Settings -> Advanced -> Environment Variables
our open cmd and execute sysdm.cpl>
Create a New System Variable
with name SUBLIME
and the value is a folder where you installed sublime
C:\Program Files\Sublime Text 3
Add the System Variable to Your PATH
%SUBLIME%
commands subl file_name or subl folder_name
subl.exe file_name --add or subl.exe folder_name --add
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment