Show implicit parameters action.

I’m glad to introduce to you new feature of Scala plugin, which is coming with builds 0.4.1480 and 0.5.111 (depends on IntelliJ IDEA version).

This called “Show implicit parameters action”, however it also can be called like “Go to passed implicit value”.

As usual using of this feature is very simple. Look at the following example:

Then you probably want to know, what is actually passed to `foo` call. So you can press Ctrl+Shift+P, and then you will get the result:

After that you can choose parameter for navigation.

Comments below can no longer be edited.

7 Responses to Show implicit parameters action.

  1. Avatar

    Alex Wajda says:

    October 25, 2011

    I’m gonna like it! Thanks 🙂

  2. Avatar

    Mario Arias says:

    October 25, 2011

    The version for IntelliJ 10.5 isn’t uploaded on the plugins site.

    Can you please fix this?

  3. Avatar

    Alexander Podkhalyuzin says:

    October 26, 2011

    Yes, sorry. It will be uploaded at friday.

  4. Avatar

    tort says:

    November 7, 2011

    very useful. thanks!

  5. Avatar

    ittay says:

    June 10, 2014

    What if the implicit parameter itself requires implicit parameters? E.g.,

    def foo[T : Monoid](t: T)

    Then for T=Int, IntMonoid will be shown, but what if T=Map[Int, Int]? Showing just MapMonoid is not enough, since it itself has an implicit monoid for the value (an IntMonoid in this case)

    Since viewing implicit parameters is useful to make sure the right one is chosen, I think nested implicit parameters are also important

  6. Avatar

    Tomer Ben David says:

    January 28, 2015

    Is there a way to automatically convert the implicit parameters to explicit?

Discover more