sublime text3 package control 安装

时间:2022-12-07 08:58:00

1、安装 package control

  按快捷键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、回车

3、重启sublime,查看 Preferences->Package Control 是否存在(存在则安装成功,否则失败)