🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
## 一些有用的插件 --- 插件管理:package control 2的pac 安装 `import urllib2,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_path();os.makedirs(ipp) if not os.path.exists(ipp) else None;open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read())` ~~~ import urllib.request,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by) ~~~ 主题切换:[Themr](https://github.com/benweier/Themr) [tm配色文件生成器](https://github.com/aziz/tmTheme-Editor) html+js神器:[Emmet](https://github.com/emmetio/emmet) 、[Emmet中文文档](http://www.iteye.com/news/27580) 版本控制:[SVN](http://sublime.wbond.net/svn)、 [TortoiseSVN](https://github.com/dexbol/sublime-TortoiseSVN)、 [gist](https://github.com/condemil/Gist)、 [git](https://github.com/kemayo/sublime-text-2-git)、[smartsvn](http://www.smartsvn.com/) 我们建立html文件时,做有些相同的代码。 这时候我们喜欢能有一个代码模板, 不能写重复相同的代码, gist插件能实现代码模板的功能。 它能见我们自己创建的代码模板,代码片段保持在github中的gist下。 [这里](http://lucifr.com/2012/03/07/sublime-text-2-plus-gist-equal-snippet-manager/)介绍了详细的用法。 FTP相关:[SFTP](http://blog.wpjam.com/article/sublime-text-2-sftp) web相关:[Web Inspector](http://www.html5cn.org/article-4982-1.html)、 [ColorPicker](http://weslly.github.io/ColorPicker) 文件管理:[SideBarEnhancements](https://github.com/titoBouzout/SideBarEnhancements) 对齐工具:[Sublime Alignment](http://wbond.net/sublime_packages/alignment)、 [Valign](https://github.com/jlong64/sublime_valign)、 [codealignment](http://jaylabs.sinaapp.com/Sublime%20Guide/Sublime%20Alignment) 只支持win 快捷键相关: [FindKeyConflicts](https://github.com/skuroda/FindKeyConflicts) [KeymapManager](https://github.com/welefen/KeymapManager) 代码相关: [wheelchange](https://github.com/matiaspub/WheelChanger) [jQuery-snippets](https://github.com/aaronpowell/sublime-jquery-snippets) 演示 这个插件提供jQuery的提示功能,不过每次提示都需要快捷键ctrl+shift+p上查找,不过如果和CodeIntel插件(下面说到)配合使用能互补不足,因为两个插件都有些jQuery代码缺少。 [Clipboard History](https://github.com/kemayo/sublime-text-2-clipboard-history) 用法:按ctrl+shift+v 演示: 演示 粘贴板历史记录,方便使用复制/剪切的内容,快捷键ctrl+shift+v可调出该历史记录面板 [CodeIntel](https://github.com/Kronuz/SublimeCodeIntel) 演示: 演示 "codeintel_syntax_map": { "Python Django": "Python", "php": "C:/wamp/bin/php/php5.3.13/php.exe" } 代码自动提示,支持大多数语言,能很好的提示大部分jQuery函数 SublimeCodeIntel 让sublime跳转到变量定义的地方 给Sublime Text 2安装CTags插件 Xdebug 左家梓使用过有问题可以用它,不过建议用Netbeans自带的 Thinkphp 本人编写,实现了读取官方文档列表,采集手册,去除项目(其实是打开目录中)文件的bom头,自动完成,读取项目中数据库配置后读取Thinkphp风格表名的字段显示(目前只支持,mysql,以后会支持其他),访问在线api等。