首页 > 代码库 > Sublime Text 3之Package Control 安装

Sublime Text 3之Package Control 安装

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这一项,则安装成功