一、安装包管理器

  使用Ctrl+~快捷键或者通过View->Show Console菜单打开命令行,粘贴如下代码

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)

  一般没问题的话,此时就可以在Preferences菜单下看到Package Settings和Package Control两个菜单了。

二、安装乱码处理插件:

按快捷键ctrl+shift+p,或者点击Preferences->Packet Control,输入:install package,回车,在稍后弹出的安装包 框中搜索:ConvertToUTF8或者GBK Support,选择点击安装;

  重新打开文件即可。

Last modification:August 6th, 2020 at 03:28 pm
If you think my article is useful to you, please feel free to appreciate