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.

This entry was posted in Uncategorized. Bookmark the permalink.

5 Responses to Show implicit parameters action.

  1. Alex Wajda says:

    I’m gonna like it! Thanks :)

  2. Mario Arias says:

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

    Can you please fix this?

  3. Alexander Podkhalyuzin says:

    Yes, sorry. It will be uploaded at friday.

  4. tort says:

    very useful. thanks!

  5. ittay says:

    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

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">