sublime text2在windows中以命令行启动
把执行文件添加到PATH中即可,如图:
![](https://i-blog.csdnimg.cn/blog_migrate/1ac8fafea1182ec64fa03b7d1fb5e480.png)
如果你和我一样习惯了mac下的简写subl,那么需要在程序目录中新建一个批处理文件subl.bat,写上
@echo off
start sublime_text %1
如下:
![](https://i-blog.csdnimg.cn/blog_migrate/cc0ddb2d84fc1b088eeea3c63277eaa7.png)
![](https://i-blog.csdnimg.cn/blog_migrate/8c2fb0c1cebf0bbadf12fb5ad188992e.png)
这样,当你打开命令行窗口后,在任何文件夹里面都可以通过subl +文件名的形式来打开sublime text2,包括使用subl . 来打开当前整个的目录
![](https://i-blog.csdnimg.cn/blog_migrate/daab416f4b2fda37af3af607cf8620ab.png)