when I run the subl command, it just pauses for a moment and doesn't give me any feedback as to what happened and doesn't open. I am currently on windows 10 running the latest sublime text 3 build. I already copied my subl.exe from my sublime text 3 directory to my system32 directory. What am I missing? I've tried subl.exe ., subl.exe detect.py, subl, subl.exe
Please help me with this setup
I'm assuming that when you invoke
subl.exe via an absolute path then it works.
> "C:\Program Files\Sublime Text 3\subl.exe"
Assuming the above works, then the location of
subl.exe can be added to the system path so that there is no need to specify the absolute path.
Control Panel > System and Security > System > Advanced system settings and add
C:\Program Files\Sublime Text 3 to the
PATH environment variable.
Check that the
PATH variable does not already contain the path to
subl.exe so to avoid adding it twice.
You essentially are going to append
;C:\Program Files\Sublime Text 3 to the
PATH variable. Note the
; which is a path separator.
You may need to restart Windows for the change to take effect.
See What are PATH and other environment variables, and how can I set or use them? for in depth information on
PATH and other environment variables in general.