從菜單 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