Sublime text3安装
作者:互联网
一、Sublime text3下载
[20190506]下载
官网下载:https://www.sublimetext.com/
https://download.sublimetext.com/Sublime%20Text%20Build%203207%20x64%20Setup.exe
中文官网下载:http://www.sublimetext.cn/
https://download.sublimetext.com/Sublime%20Text%20Build%203200%20x64%20Setup.exe
二、Sublime text3安装
默认安装,一直点下一步即可
三、安装器激活
import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())
或
官网下载 https://packagecontrol.io/
中文官网下载 http://packagecontrol.cn/installation
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.cn/' + 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)
访问该网站拷贝python脚步
下载完成之后重启Sublime Text 3。
如果在Perferences->中看到package control这一项,则安装成功
参见:http://packagecontrol.cn/installation
四、安装插件
Emmet #html代码生成
Sublime CodeIntel #代码提示
Bracket Highlighter #类似于代码匹配,可以匹配括号,引号等符号内的范围
Git #代码仓库管理
Alignment #代码对齐
五、设置:
Sublime Text 3配置与vim模式:
打开Preference --> Seting-User --> "ignored_packages":[],
打开Preference --> Package Settings-->Package Control --Settings User
"channels": [ "http://packagecontrol.cn/channel_v3.json" ]
注册
打开Sublime菜单 > help > enter License
ZYNGA INC.
50 User License
EA7E-811825
927BA117 84C9300F 4A0CCBC4 34A56B44
985E4562 59F2B63B CCCFF92F 0E646B83
0FD6487D 1507AE29 9CC4F9F5 0A6F32E3
0343D868 C18E2CD5 27641A71 25475648
309705B3 E468DDC4 1B766A18 7952D28C
E627DDBA 960A2153 69A2D98A C87C0607
45DC6049 8C04EC29 D18DFA40 442C680B
1342224D 44D90641 33A3B9F2 46AADB8F
标签:http,packagecontrol,request,urllib,text3,pf,安装,Sublime 来源: https://www.cnblogs.com/pyvm/p/10821011.html