简体   繁体   English

找到在Eclipse中实例化类的位置?

[英]Find where a class is instantiated in Eclipse?

I'm looking for how to quickly find where a class is instantiated in Eclipse. 我正在寻找如何快速找到在Eclipse中实例化类的位置。 I know that you can use Search and look for new myClassName( in *java files. I'm looking for an option where right click somewhere in the class definition to find where it is instantiated in the project or a keyboard shortcut of some type. 我知道您可以使用搜索并查找new myClassName(*java文件中。我正在寻找一个选项,右键单击类定义中的某个位置,以查找在项目中实例化的位置或某种类型的键盘快捷方式。

突出显示类中的构造函数,然后使用Shift + Ctrl + G搜索正在使用的构造函数的出现位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM