Textmate go to the function definition?
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
精彩评论