1.官网下载https://www.sublimetext.com/3
二.安装Package Control
因为直接打开文件有很多乱码,所以搜了下要安装编译插件。。。
- 安装方法1:官网下载https://packagecontrol.io/installation
Preferences->Browse packages打开文件夹>返回上一层>Installed Packages把下载的文件复制进去
- 安装方法2:快捷键ctrl+` 打开console,把下面的代码复制进去回车
sublime text2
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 text3
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 text3 , Preferences下面出现Package Control就是安装成功。
三.安装插件
- 按下Ctrl+Shift+P调出命令面板
- 输入install 调出 Package Control:Install Package 选项并回车,然后在列表中选中要安装的插件。
四.常用插件
-
GBK to UTF8
将文件编码从GBK转黄成UTF8,快捷键Ctrl+Shift+C
...后期用的时候补充