开发者社区> 余二五> 正文
阿里云
为了无法计算的价值
打开APP
阿里云APP内打开

TextMate Footnotes

简介:
+关注继续查看
介绍一个textmate bundle 

keypad ‘enter’: Intelligent Go To File

只能文件导航,这个键不知道在键盘上怎么按出来..好晕.

cmd+opt+alt+p(选定内容) 为选定内容创建局部模板

This shortcut takes a selection, asks for a name and creates a partial. Not only that, but it creates the <%= render :partial => “whatever”%> method call to the partial that is created.

command-option-p (without selection): Inline Partial Edit Mode

This shortcut is flat out amazing. Simply hit command-option-p and all your partial calls are replaced with the actual code from the partial. Make your changes, hit command-option-p again, and the render partial method call is put back in its place and the partial is saved with the changes. I dinked around with it abit and definitely got the geek snorts.

command-option-g: Rails Generator

No need to even open up the terminal with this shortcut. It gives you stupid easy access to the Rails script/generate while remaining in Textmate.

ctrl-option-command-\: Install a Bundled Plugin

This automatically installs a plugin to your current project. Currently there are only two plugins bundled with it, but I can imagine it would be easy to add your own. I really like this feature.

Snippets

Not only does the bundle come with all the above cool shortcuts, but it also has several snippets which are helpful for migration. You can read all about these in the features once you download the bundle but I wanted to at least mention it.

Plugins

The bundle also comes with two plugins. One, textmate_footnotes: Clickable Web Pages and Backtrace, does two really cool things. First, it makes the line number and file name error messages clickable. Upon clicking, it opens up the file in Textmate. If you have done much debugging, this is really handy. The second feature is also pretty cool. It adds links to the bottom of the page when in development mode. These links open up the exact controller or view that rendered the page. Nice.

Final Thoughts

Have you downloaded it yet? I’m serious, this thing is awesome. Duane has been posting updates to it like crazy so I look forward to some really cool features in the coming weeks.

这个bundle的下载地址:
[url]http://blog.inquirylabs.com/2006/02/21/syncpeople-on-rails-09-wow-what-a-weekend/[/url]

可以从这个bundle出发安装一个textmate footnotes :

ctrl+cmd+alt+\
安装textmate footnotes
可以在调试出错的track trace列出的文件链接到textmate中打开,另外在页面调试中,在下方会添加一个TextMate Footnotes: Controller | View

这样很容易实现页面调试与代码之间的导航




本文转自 fsjoy1983 51CTO博客,原文链接:http://blog.51cto.com/fsjoy/113454,如需转载请自行联系原作者

版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

相关文章
Cordova应用的JavaScript代码和自定义插件代码的调试
Cordova应用的JavaScript代码和自定义插件代码的调试
61 0
Java获取当前时间及String、datetime、date相互转化
Java获取当前时间及String、datetime、date相互转化 一、获取当前系统时间和日期并格式化输出: [java] view plain copy import java.util.
2771 0
java中Date与String的相互转化
1:大体思路    [html] view plaincopy 这种转换要用到java.text.SimpleDateFormat类      字符串转换成日期类型:   方法1:      也是最简单的方法 Date date=new Date("2008-04-14");      方法2:...
728 0
自定义TextView实现跑马灯效果
mainActivity如下: package c.x; import android.app.Activity; import android.
933 0
+关注
20376
文章
0
问答
文章排行榜
最热
最新
相关电子书
更多
低代码开发师(初级)实战教程
立即下载
阿里巴巴DevOps 最佳实践手册
立即下载
冬季实战营第三期:MySQL数据库进阶实战
立即下载