1.插件的安装方法有两个:直接安装和插件管理安装
1.1 直接安装,将下载的安装包解压缩到Packages目录(菜单->preferences->packages);
1.2 Package Control组件安装。用Package Control安装插件的方法:
按下Ctrl+Shift+P调出命令面板,输入install, 调出 Install Package 选项并回车,然后在列表中选中要安装的插件。
有的网络环境可能会不允许访问陌生的网络环境从而设置防火墙,而Sublime Text 貌似无法设置代理,可能就获取不到安装包列表了。
2.Package Control安装
打开Sublime Text ,按快捷键 ctrl+` 或者点击 Tools → Command Palette 调出控制台Console;将以下代码复制粘贴进命令行后回车:
重新启动Sublime Text 2,如果在Preferences → Package Settings 中看到 Package Control 这一项,说明安装成功。
import urllib2,os;
pf='Package Control.sublime-package';
ipp=sublime.installed_packages_path();
os.makedirs(ipp)ifnot os.path.exists(ipp)elseNone;
open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read())
3.常用插件安装
SublimeTmpl(自定义新建文件) | |
Zen Coding(现已改名为Emmet) | |
ColorPicker(调色盘) | |
Alignment(代码补齐) |
4.其他插件:
Clipboard-history(粘贴板历史记录) | |
Gits(集成 GitHub) | |
Hex-to-HSL-Color Hex(颜色模式转HSL颜色模式) | |
HtmlTidy(清理与排版你的HTML代码) | |
JsFormat(javascript格式化) | |
PHPTidy(整理与排版PHP代码) | |
SideBarEnhancements(侧边栏增强) | |
SublimeLinter(代码错误提示) | https://github.com/SublimeLinter/SublimeLinter/tree/sublime-text-3 |
SFTP(编辑 FTP 或 SFTP 服务器上的文件) | |
Tradsim(中文繁字体和简体字转换) | |
TrailingSpacer(高亮显示多余的空格和Tab) | |
YUI Compressor(压缩JS和CSS文件) | |
CSScomb(CSS属性排序) |