intellij-idea - IntelliJ : find method by signature

标签 intellij-idea

我想知道是否可以找到返回特定类型的对象的方法? 例如,我想在自动完成中查找返回 String:

的所有方法

enter image description here

对于这个示例,只需向下滚动即可轻松找到它,但对于具有大量方法的对象,这可能会很痛苦。

最佳答案

实际上,即使在类结构 View 中,也没有按返回类型进行默认排序(还?)。 我使用智能补全(ctrl+shift+space)来实现此目的,仅接受某些类型,例如:

String s = aClass.<smart completion here>

它将显示 aClass 中在开头返回 String 的方法。

关于intellij-idea - IntelliJ : find method by signature,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13800276/

相关文章:

jar - 从 IntelliJ 中的选定类创建不可执行的 JAR

android - 如何安装独立的 Android SDK,然后将其添加到 Windows 上的 IntelliJ IDEA?

java - 通过 IntelliJ Idea 在 Tomcat 中部署外部 war

java - 智能 : Cannot copy resources and compile

java - 在 Intellij Idea 中自动将所有匿名内部类替换为 lambda

javascript - 智能 : Jump to declaration in node modules when TypeScript community stubs are present?

search - WebStorm:搜索不起作用

java - IntelliJ Mac Catalina : Java 11 or newer is required to run the IDE

java - 使用 IntelliJ 删除源文件注释?

android - Intellij : android-support-v4. jar 包含在 actionBarSherlock 和 Project => IllegalArgumentException 中