最新sublime text安装package control
2017-09-15 12:17
357 查看
官方文档
https://packagecontrol.io/installation#st3通过 ctrl+` 快捷键或者 View > Show Console菜单打开控制台,复制粘贴回车如下代码即可。
sublime text 3
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 text 2
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')
手动安装
Click the Preferences > Browse Packages… menuBrowse up a folder and then into the Installed Packages folder
Download Package Control.sublime-package and copy it into the Installed Packages directory
Restart Sublime Text
译文:
1. 点击菜单中Preferences > Browse Packages
2. 浏览文件夹,然后进入Installed Packages文件夹
3. 下载Package Control.sublime-package ,然后复制到 Installed Packages目录中
4. 重启
相关文章推荐
- 最新sublime text安装package control
- 最新 Sublime Text 3 Package Control 安装
- 最新 Sublime Text 3 Package Control 安装方法
- 最新 Sublime Text 3 Package Control 安装方法
- 最新 Sublime Text 3 Package Control 安装
- Sublime Text 2/3 安装Package Control
- sublime text3 package control 和 emmet 的安装
- Sublime Text 3 安装Package Control
- Sublime Text 无法使用Package Control或插件安装失败的解决方法
- Sublime Text安装Package Control
- sublime text 3 如何安装 package control
- Sublime Text 3 安装 Package Control
- Sublime Text 3安装与使用 Package Control 插件安装
- Sublime Text安装插件管理 Package Control
- Sublime Text安装Package Control
- Sublime Text 3 安装插件管理 Package Control
- 解决sublime Text3 package control 无法安装插件问题
- Sublime Text 3 Package Control 组件安装
- Sublime text 2/3 中 Package Control 的安装与使用方法
- Sublime text 2/3 中 Package Control 的安装与使用方法+激活汉化方法