我在用着崇高2用于 Ruby On Rails 编程。
我需要能够单击方法名称并跳转到定义该方法的类。有很多具有类似功能的 IDE...
Goto symbol
is Ctrl-R (linux), this gives a pop-up-list of all symbol and class definitions in the file, in definition order, and you can jump to what you're after. You could do the same thing with Goto Anything
, Ctrl-P and then typing @ and the method name.
另外,还有一个转到符号 https://github.com/gooli/Goto-Symbol插件,它允许您通过按键绑定或单击直接跳转到光标所在的方法名称的定义。
However, both those methods are limited to the current file. If you need to jump to definitions in other files, probably the best solution is the SublimeCodeIntel https://github.com/SublimeCodeIntel/SublimeCodeIntel plugin. It seems to be working pretty well and just by hitting Ctrl-f3 (linux) will open up the file at the definition you want.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)