Sublime Text 3常用插件安装
1.直接安装
--下载安装包解压缩到Packages目录(菜单->preferences->packages)
2.使用Package Control组件安装
(1)首先安装Package Control:Package control是必装插件,所有其他的插件和主题都可以通过它来安装
1)按Ctrl+`调出console
2)粘贴以下代码到底部命令行并回车:
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())
3)重启Sublime Text 3
4)如果在Perferences->package settings下看到package control项,则安装成功
--Sublime Text2 的代码
import
urllib2,os; pf
=
‘Package Control.sublime-package‘
; ipp
=
sublime.installed_packages_path(); os.makedirs( ipp )
if
not
os.path.exists(ipp)
else
None
; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler( )));
open
( os.path.join( ipp, pf),
‘wb‘
).write( urllib2.urlopen(
‘http://sublime.wbond.net/‘
+
pf.replace(
‘ ‘
,
‘%20‘
)).read());
print
(
‘Please restart Sublime Text to finish installation‘
)