I'm finding that with Ruby or RoR code, Netbeans' "go to declaration" doesn't show as lit up. Is there some way to turn this on?
Also: Eclipse开发者_如何学Go with RadRails seems to have this for Ruby? RubyMine seems to as well... surely Netbeans can't be missing this normalish feature.
Mouse right button->Navigate->go to declaration should do it
Or, as I prefer, the shortcut ctrl+B.
Also, ctl(or option in mac)-click over a method or var will browse to the declaration as well. I do it all the time in ROR project.
And for those who are looking for shortcut for going back from "goto declaration" - key combination is
alt + left
精彩评论