Sublimte的Package Control 安装
来源:互联网 发布:vchat互动聊天室源码 编辑:程序博客网 时间:2024/06/11 23:53
INSTALLATION
Simple
The simplest method of installation is through the Sublime Text console. The console is accessed via the ctrl+` shortcut or the menu. Once open, paste the appropriate Python code for your version of Sublime Text into the console.
Sublime Text 3:
import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; 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://sublime.wbond.net/' + 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 = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; 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://sublime.wbond.net/' + 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')
This code creates the Installed Packages folder for you (if necessary), and then downloads the Package Control.sublime-package into it. The download will be done over HTTP instead of HTTPS due to Python standard library limitations, however the file will be validated using SHA-256.
Munaul
If for some reason the console installation instructions do not work for you (such as having a proxy on your network), perform the following steps to manually install Package Control:
- Click the menu
- Browse up a folder and then into the Installed Packages/ folder
- Download Package Control.sublime-package and copy it into theInstalled Packages/ directory
- Restart Sublime Text
转载地址:https://sublime.wbond.net/installation#st3
0 0
- Sublimte的Package Control 安装
- Sublime-Text的package control安装
- 安装Sublime text 2的Package Control
- 利用sublime的package Control安装插件
- sublime text3的package control安装
- sublime3 package Control 安装
- Sublime 安装 Package Control
- sublime Package Control 安装
- sublime 安装package control
- sublime3安装Package Control
- Sublime Package Control 安装
- 安装Package Control
- SublimeText3安装Package Control
- 安装Sublime Package Control
- sublime安装package control
- 安装package control
- sublineText3 安装package control
- sublimeText安装package control
- POJ 3984 迷宫问题(BFS:迷宫最短路径且输出路径)
- nyoj1006(最短路次短路spfa)
- 模拟剪刀石头布猜拳游戏
- MDK + Jlink + SDRAM 裸奔2440教程
- 劫匪深夜打劫"女汉子" 被高跟鞋猛踹肚子
- Sublimte的Package Control 安装
- git服务器的建立——Git折腾小记
- 如何增加一个通讯录信息,信息包括姓名,地址和电话
- 如何使用Jlink烧录BIOS到GEC2440
- 设计模式(1)--策略模式
- 使用assets文件下的.9.png格式图片
- 第11周 项目2 职员有薪水了
- Debian下为Apache启用rewrite模块
- Linux源代码目录结构介绍