打開sublime編輯器,ctrl + ` 打開安裝PackageControl界面:css
sublime text3:html
import urllib.request,os,hashlib; h = '6f4c264a24d933ce70df5dedcf1dcaee' + 'ebe013ee18cced0ef93d5f746d80ef60'; 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 text2:前端
import urllib2,os,hashlib; h = '6f4c264a24d933ce70df5dedcf1dcaee' + 'ebe013ee18cced0ef93d5f746d80ef60'; 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://packagecontrol.io/' + 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')
安裝後Package Control以後,關閉sublime text3編輯器再從新打開,就能夠安裝一些相關的插件git
Emmet快捷開發速查表:github
http://docs.emmet.io/cheat-sheet/瀏覽器
HTML-CSS-JS Prettify html/css/js語法提示編輯器
CSScombui
ColorPickerurl
Autoprefixer 瀏覽器前綴補全spa
LiveStyle css實時更新插件
剛出現這個問題,不知什麼鬼,去找了度娘,結果網上衆說紛紜,按照上面說的並無解決,而後我就把package Control從新安裝了一下,啊哈哈,結果問題解決了