- 使用ctrl+`或者仪搔,鼠標(biāo)右鍵圖中紅色箭頭纱烘,打開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,安裝這個(gè)包
- 重啟sublime