常用工具使用(sublimeText)
2024-09-21 02:12:36
1、sublime Text (插件的安装,删除,更新)
1.1 使用 ctrl+`快捷键(Esc下面的波浪线按钮) 或者 菜单项View > Show Console 来调出命令界面,下面代码(第一个是s3,第二个s2)copy进去,回车。Esc退出。
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)
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')
重启Sublime Text 3,查看Perferences->package settings中是否有package control这一项,如果有,则安装成功。
1.2 新插件的安装:
Ctrl+Shift+P调出命令面板,输入install 选则列表中的 Install Package 选项并回车。
1.3 删除插件:
Ctrl+Shift+P调出命令面板,输入remove,调出Remove Package选项并回车,选择要删除的插件即可。
1.4 更新插件:
Ctrl+Shift+P调出命令面板,输入upgrade,调出upgrade Package选项并回车,选择要更新的插件即可。
参考:https://packagecontrol.io/installation
最新文章
- Medial Queries的另一用法——实现IE hack
- servlet/filter/listener/interceptor区别与联系
- CentOS7—HAProxy安装与配置
- 佛祖保佑 永无BUG 永不修改
- Jenkins 2.26 发布,可扩展的持续集成引擎
- bzoj-3444 3444: 最后的晚餐(组合数学)
- python_way day14 CSS
- I2总线
- hexo部署到gitcafe上静态博客
- 漫谈项目设计&;重构&;性能优化
- Linux(power服务器)中kettle(2)
- 【数据库系列学习一】Access与Excel的区别和联系
- 基于Json序列化和反序列化通用的封装
- js的事件循环绑定和jQuery的隐式迭代
- ";tsc.exe";已退出,代码1
- deeplearning 重要调参参数分析
- Could not process inbound connection: Client [/rostopic_18439_1555659423249] wants topic , ROS md5sums do not match
- JS绘制拓扑图示例 (JTopo)
- [整理]IE11中的WebGL探秘:渲染速度超Chrome
- 获取指定ip段的所有存活主机的主机名和操作系统
热门文章
- 解决java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.ArrayList问题
- HTML5 为 <;input>; 增加的属性 ; 为 <;form>; 增加的如需属性
- [转]centos7.2 下 nginx 开机启动
- Cogs 9. 中心台站建设
- 洛谷P5048 [Ynoi2019模拟赛]Yuno loves sqrt technology III(分块)
- Miller-Rabin素性测试|Pollard&#39;s Rho算法
- 项目经验:Glyphicons字体图标改造,制造适合自己项目的字体图标
- php保存网络图片到本地
- day22作业详解
- Luogu P2480 [SDOI2010]古代猪文 卢卡斯+组合+CRT