Sublime Text 2/3 Package Control 安装方法(Install Package)

打开 Sublime Text 2/3, 按住 ctrl + ~ (键盘左上角Esc下面的键),在底部弹出的文本框中输入以下命令,点击回车,安装完成后会提示你要重启Sublime。
 
 
Installed Packages 3 安装 Install Package
 
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())

 

Installed Packages 2 安装 Install Package
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')
 
posted @ 2015-04-22 13:00  BruceZhang80  阅读(300)  评论(0编辑  收藏  举报
@BruceZhang