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,如需转载请自行联系原作者
目录
相关文章
|
5月前
|
Web App开发 JavaScript iOS开发
[√]使用vscode开发油猴Tampermonkey脚本
[√]使用vscode开发油猴Tampermonkey脚本
299 0
|
6月前
|
JavaScript 前端开发 开发工具
vscode工具使用教程
vscode工具使用教程
63 0
|
4月前
|
IDE JavaScript 开发工具
卸载NotePad++/SublimeText吧:VSCode才是史上最优秀的IDE编辑器
免费,这应该是所有人都所希望的,而且居然是微软开源免费的,你敢信吗?vscode使用的是MIT Lisense, 可随意下载, 分发, 商用等。下载地址:
|
程序员 Linux 开发工具
SublimeText
SublimeText自制脑图 文本编辑器(收费软件,可以无限期试用),先进的代码编辑器,Sublime Text是由程序员Jon Skinner于2008年1月份所开发出来,它最初被设计为一个具有丰富扩展功能的Vim。一个跨平台的编辑器,同时支持Windows、Linux、Mac OS X等操作系统。
96 0
SublimeText
|
Python
Python编程:sublime编辑器python开发必装插件
Python编程:sublime编辑器python开发必装插件
149 0
|
安全 API 计算机视觉
tauri中为什么无法使用快捷键
tauri中无法使用快捷键?看看我寻找问题的答案的心路历程
699 0
|
前端开发 开发工具 git
sublime常用插件
解决中文输入 sudo apt-get update && sudo apt-get upgrade git clone https://github.
985 0