有没有办法从eclipse的实例自动转到eclipse中的Class.
Foo foo = new Foo();
// lots of lines of code
foo.some(); // from foo I want to go to the Class Foo direcly with a key press.
Run Code Online (Sandbox Code Playgroud)
我收到了一些答案,但这不是我想要的.有时我不调用方法,我只是参考foo,例如在调用其他方法时:
method(foo, bar);
Run Code Online (Sandbox Code Playgroud)
按住控件并单击类名.
您还可以使用"打开声明"功能从方法调用转到特定方法.所以按住控件并单击some()它会转到Foo类中的方法声明.(或点击F3,或右键单击并选择"打开声明".)
或者你可以在行中使用构造函数:Foo foo = new Foo();跳转到类的构造函数,它也将带你到类.
| 归档时间: |
|
| 查看次数: |
8178 次 |
| 最近记录: |