开发者

Textmate go to the function definition?

开发者 https://www.devze.com 2023-04-04 20:54 出处:网络
Lets say I have this in my controller @appoi开发者_如何学编程ntment.add_appointer Is there a shortcut in Textmate to jump to the add_appointer function definition in my appointment.rb model?No, unfo

Lets say I have this in my controller

@appoi开发者_如何学编程ntment.add_appointer

Is there a shortcut in Textmate to jump to the add_appointer function definition in my appointment.rb model?


No, unfortunately. I think the fastest way is to probably use:

Command+T <type appointment.rb>

Now in open file

Command+Shift+T <type method name>


The beauty of TextMate is that it can be simply extended to fulfil you needs!
I've written a TextMate Bundle command (you can easily assign it to Ctrl+] for example) that lookup for the definition of the class or method under the caret and displays it in a tooltip, along with the file name and the line where it was find.

Check it out: Add a shortcut to TextMate to lookup a class or method definition in a tooltip

0

精彩评论

暂无评论...
验证码 换一张
取 消