标签:
安装
到https://packagecontrol.io/installation#st3拷贝
1 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)
ctrl+` 打开命令面板,执行上面的代码。
ctrl+shift+p 输入install package
安装完成之后,会自动打开install package面板,安装你想要的package
之后再安装package,可以ctrl+shift+p,输入install package后,就可以打开install package的面板了
删除
ctrl+shift+p,输入list packages,可以列出安装的packages,选择要删除的包,删除即可。(如果设置中有相关的设置,同时也要进行清除)
标签:
原文地址:http://www.cnblogs.com/zhangwuyin/p/4850772.html