今天把Sublime text升级到了3,但是没有package control控制台,网上看了很多都是用git的方法,很复杂,看了下官网。找到了,记录下!
The simplest method of installation is through the Sublime Text console. The console is accessed via the ctrl+` shortcut or the View > Show Console menu. Once open, paste the appropriate Python code for your version of Sublime Text into the 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())
搞定。。
插件列表
- Tag
- JsFormat
- CSSFormat
- VBScript
2019-01-27更新
最近package control安装总是报服务器无法连接,增加
package control user设置
{
"bootstrapped": true,
"channels":
[
"https://raw.githubusercontent.com/wilon/sublime/master/download/channel_v3.json"
],
"in_process_packages":
[
],
"installed_packages":
[
"Package Control"
]
}
文章评论