-
If you're using Sublime Text 3 copy then paste this to the command line:
// Sublime Text 3 $ ln -sv "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl -
If you're using Sublime Text 2 copy then paste this to the command line:
// Sublime Text 2 $ ln -sv "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
Now test it out to see if it works:
-
Open a new file from the command line:
$ subl test.rb // it should open new file test.rb in Sublime Text -
Open a project folder:
$ subl dir/myProject // opens a new folder inside Sublime -
Launch Sublime app:
$ subl // launches Sublime
To open Sublime Help for more detailed options use:
$ subl -h // Sublime help

本文介绍如何快速安装 Sublime Text 2 和 Sublime Text 3,并提供命令行测试方法,包括新建文件、打开项目文件夹及启动应用等。
934

被折叠的 条评论
为什么被折叠?



