1.通过快捷键 ctrl+` 或者 View > Show Console 打开控制台,然后粘贴以下安装代码;
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())
2.重启Sublime Text 3;
3.如果在Perferences->package settings中看到package control这一项,则安装成功。
Sublime Text 3之Package Control 安装
时间: 2024-10-03 14:14:50