douhezi2285 2016-06-10 12:17
浏览 183

查找项目中类的所有实例化

I have a class in a project, which is a huge codebase. I want to find all places in the code where this class is instantiated. (Actually, I want to know specifically where a certain member of this class is used).

Is there any IDE (eclipse, netbeans, intelliJ etc) which provides this functionality.

(Just searching with the class name gives over 250 matches even with "match case" and "match whole words" on)

Also, codebase is in PHP, so, searching for constructor won't work.

  • 写回答

1条回答 默认 最新

  • drba1172 2016-06-10 13:36
    关注

    You should try PhpStorm (Similar to IntelliJ, but for PHP).

    Go to class, place cursor on class name and press Alt+F7 - it will find all class usages in project, and categorize it. One of categories should be "New instance creation".

    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度