标签:
Sublime Text2 安装 Package Control 安装方法并不唯一
在菜单栏中找到 "View" 然后选择 "Show Console" windows下快捷键Ctrl+~; mac下 Command+~
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(‘ ‘, ‘ ‘)).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‘)
GBK Encoding Support -- 让编辑器支持GBK编码
ZenCoding -- 可以超快速编写HTML文件,用Ctrl+Alt+Enter呼出
JSFormat -- 格式化Javascript
Sublime Text2安装Package Control
标签:
原文地址:http://www.cnblogs.com/zonglonglong/p/4305510.html