Possible to look up implicit conversions?

Hi,

I find the discreet underlining of method calls which involve implicits very nice. I wonder, is it possible to look up where that conversion comes from. You know you have

def test( a: String ) : Int = a.size

Now size is invoked through implicit conversion and underlined. Is it possible in IDEA to go to the conversion site? Like Cmd-B brings me to SeqLike->size, fine, but can I be transferred to the point where String becomes SeqLike?

If not, this would be a feature request :)

best, -sciss-

11 comments

Navigate -> Implicit Conversion

Screen Shot 2011-11-30 at 11.51.26 PM.png

0

Ah ok, I didn't see that one. But I was more thinking the other way round, not asking a receiver to which other thing it can be converted (for String it shows me half a dozen things, and I still don't know which one is responsible for .size), but to select the method and ask through which conversion it is accessible.

0

The first one, highlighted, is the applied implicit view.

0

the default keyboard shortcut on OSX for that is shift+command+Q which conflicts with Logout Current User
I have to change that shortcut in IDEA because I don't know how to change the logout shortcut in OSX X-(

0

Ok, I'll think what I can do (however you know, it's a big problem to find free good shortcut...). Thank you for notice.

Best regards,
Alexander Podkhalyuzin.

0

Ok, then I want to change default key for OS X (for others default will be the same). I checked Command key icon + Option or Alt key icon + Q, and it seems it's free in both IDEA and OS X.

Best regards,
Alexander Podkhalyuzin.

0

Done. Now it's control + shift + Q in bot OS X keymaps.

Best regards,
Alexander Podkhalyuzin.

0

is it possible to change the color/font style of conversions? i already use the underline for many other things

0

As I remember, it's impossible. You only can turn off this feature. You can also create an issue, I'll fix it (or I'll change something, this is a place, which I want to change, just don't know in what direction).

Best regards,
Alexander Podkhalyuzin.

0

Please sign in to leave a comment.