image.png
- 使用ctrl+`或者,鼠标右键图中红色箭头,打开console
- console中输入如下指令
import urllib.request,os,hashlib; h = '817937144c34c84c88cd43b85318b265' + '6f9c3fac02f8f72cbc18360b2c26d139'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)
- 重启sublime
- 选择,菜单栏-》preference-》package control-》install package
- 输入convertToUTF8,安装这个包
- 重启sublime
image.png
网友评论