安装package control自动版:
从菜单 View - Show Console 将以下 Python 代码粘贴进去并 enter 执行,
Sublime Text 3:
importurllib.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())
Sublime Text 2:
importurllib2,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_path();os.makedirs(ipp)ifnotos.path.exists(ipp)elseNone;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')
成功即完成,如果显示如下报错,来吧手动解决:
Control.sublime-package: File is not a zip file
安装package control手动版:
1.下载手动下载Package Control.sublime-package,放置在Data-Installed Packages,如::\software\sublime_text_3176\sublime_text_3176\Sublime Text Build 3176 x64\Data\Installed Packages
2.重启软件即可看到Preferences > Package Control。
点击install package,安装以下插件:
安装FileHeader插件:自动创建文件开头模板
安装CSS Format插件:css格式化
安装emmet插件