从菜单 View - Show Console 或者 ctrl + ~ 快捷键,调出 console。将如下 Python 代码粘贴进去并 enter 执行,不出意外即完成安装。如下提供 ST3 和 ST2 的安装代码:php
Sublime Text 3:html
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
Sublime Text 2:app
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')sublime-text-3
http://www.cnblogs.com/lhb25/p/10-essential-sublime-text-plugins.htmlide
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 saysAgreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
ui
Agreeing to Xcode license outside Sublime Text may help resolve the issue.url
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..net
在terminal中打开Sublimerest
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