1.按住 ctrl+` 或者 打开控制台
2.在控制台输入:
import urllib.request,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; 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)
按enter
3.如果报错,就需要翻墙。打开vpn后,再重复2.
4.点击菜单Preference-->Package Control点击Install Package
5.点击Install Package
6等待几秒后再弹出如下内容,敲键盘emmet,选择第一个,待会在选择第二个:
7重启之后,测试一下
输入div
按Ctrl+e 生成---<div></div>
参考:如何将Emmet安装到到 Sublime text 3?
http://www.cnblogs.com/tinyphp/p/3217457.html