问题描述
当我运行subl命令时,它会暂停片刻,并且不会给我任何有关发生了什么且无法打开的反馈.我目前在Windows 10上运行最新的Sublime Text 3版本.我已经将subl.exe从sublime text 3目录复制到了system32目录.我想念什么?我已经尝试过subl.exe.,subl.exe detect.py,subl,subl.exe
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
请帮助我进行此设置
推荐答案
我假设当您通过绝对路径调用 subl.exe
时,它将起作用.
I'm assuming that when you invoke subl.exe
via an absolute path then it works.
> "C:\Program Files\Sublime Text 3\subl.exe"
假设上述工作正常,则可以将 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.
转到控制面板>系统与安全性系统>进阶系统设定
,然后将 C:\ Program Files \ Sublime Text 3
添加到 PATH
环境变量.
Go to Control Panel > System and Security > System > Advanced system settings
and add C:\Program Files\Sublime Text 3
to the PATH
environment variable.
检查 PATH
变量是否尚未包含 subl.exe
的路径,以免将其添加两次.
Check that the PATH
variable does not already contain the path to subl.exe
so to avoid adding it twice.
您基本上将要在 PATH
变量后附加; C:\ Program Files \ Sublime Text 3
.注意;
,它是路径分隔符.
You essentially are going to append ;C:\Program Files\Sublime Text 3
to the PATH
variable. Note the ;
which is a path separator.
您可能需要重新启动Windows才能使更改生效.
请参见详细了解 PATH
和其他一般环境变量.
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.
这篇关于Sublime Text 3 subl命令在Windows 10中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!