SublimeText3
1.SublimeText3的安装
下载地址:http://www.sublimetext.com/3
2.安装 Package Control
Package Control是一个为了方便管理插件的插件,通过它可以快捷方便的安装和卸载插件。
2.1.修改host
Package Control被墙了,但是IP可以使用,可通过修改host来下载
50.116.34.243 sublime.wbond.net
2.2.安装 Package Control:
点击顶部菜单的 View -> Show Console(或者使用快捷键command + ~)
打开控制台
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')
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)
在控制台粘贴上边复制的命令,回车执行!安装完成后,重启软件
重启完成后,打开
3.常用的命令:
Install Package (安装扩展)
List Packages (列出全部扩展)
Remove Package (移除扩展)
Upgrade Package (升级扩展)
4.汉化
选择 Install Package ,在输入框内输入chinese,下面自动出现ChineseLocalizations,点击选择,它会自动进行安装,安装好后,界面自动变成中文