Search code examples
javaintellij-ideabukkit

Search symbols in specific dependency IntelliJ?


I have a library that I know roughly how it works, but I can't remember which class of the API I need to register events dynamically.

I can imagine a way to search a specific dependency, for a specific method/symbol. like ctrl alt n.

Is there a way to filter it to a specific jar/library/dependency, rather then it searching all libraries on the classpath?


Solution

  • Simply, add a scope first, then you can use this scope to filter the result.

    The symbol search interface is as follows, the scope filter is in the upper right corner, the default value is All Places.

    Default symbols searching

    To add a custom scope, you need to do it in the settings, see the help documentation.

    After adding the scope, you can use the scope for filtering.

    use the scope for filtering