标签:style blog http color os io ar art
一、安装Package Control :
(1)进站点https://sublime.wbond.net/installation#st2按提示复制一段python命令安装Package Control进行操作:
ctrl+`或者打开View > Show Console菜单,把一下代码贴近控制台,按回车安装。
import urllib2,os,hashlib; h = ‘7183a2d3e96f11eeadd761d777e62404‘ + ‘e330c659d4bb41d3bdf022e94cab3cd0‘; 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()) ); by = urllib2.urlopen( ‘http://sublime.wbond.net/‘ + pf.replace(‘ ‘, ‘%20‘)).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), ‘wb‘ ).write(by) if dh == h else None; print(‘Error validating download (got %s instead of %s), please try manual install‘ % (dh, h) if dh != h else ‘Please restart Sublime Text to finish installation‘)
(2) 下载https://sublime.wbond.net/Package%20Control.sublime-package插件包到插件目录。
菜单中打开Preference--Browse Packages,进入上一级菜单,把插件包放进Installed Packages插件目录。
二、安装Sublime Text2插件:
Ctrl+Shift+P(Win) 或 Command+Shift+P(Mac) 调出控制面板,常用的命令Install Package (安装扩展)、List Packages (列出全部扩展)、Remove Package (移除扩展)、Upgrade Package (升级扩展)
Sublime Text2安装插件,布布扣,bubuko.com
标签:style blog http color os io ar art
原文地址:http://www.cnblogs.com/Travel/p/3907058.html