从菜单 View - Show Console 或者 ctrl + ~ 快捷键,调出 console。将以下 Python 代码粘贴进去并 enter 执行,不出意外即完成安装。以下提供 ST3 和 ST2 的安装代码:
Sublime Text 3:
import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener(urllib.request.build_opener(urllib.request.ProxyHandler()));open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen('http://sublime.wbond.net/' + pf.replace(' ','%20')).read())
Sublime Text 2:
import urllib2,os; pf='Package Control.sublime-package'; ipp =
sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler( ))); open( os.path.join( ipp, pf), 'wb' ).write( urllib2.urlopen( 'http://sublime.wbond.net/' +pf.replace( ' ','%20' )).read()); print( 'Please restart Sublime Text to finish installation')
http://www.cnblogs.com/lhb25/p/10-essential-sublime-text-plugins.html
Today after I updated OS X to 10.9.5 and Xcode on Mac, I encounter a problem with Sublime Text 2 that when I write a Hello World program in C++, and run build, it says
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
Agreeing to Xcode license outside Sublime Text may help resolve the issue.
Running sudo xcrun cc should bring up the cli version of the Xcode license agreement. Another option is to open Xcode.app and agree in the GUI.
在terminal中打开Sublime
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /opt/local/bin/subl
http://www.sublimetext.com/docs/2/osx_command_line.html
http://wasil.org/sublime-text-3-perfect-php-development-set-up