When an implicit conversion is applied, IntelliJ underlines the converted code. Is it possible to navigate to the applied conversion in some way?
When an implicit conversion is applied, IntelliJ underlines the converted code. Is it possible
Share
Yes it is possible (IntelliJ IDEA 11.1.3 CE with Scala Plug-In 0.5.948, but this has been possible for a while).
You need to select the receiver not the method itself. For instance, assume
dataDiris of typejava.io.File. Then I can dowhere
foreachis available through implicit conversion fromArraytoArrayOps, thus is underlined. If you selectdataDir.listFiles()and choose from the menu Navigate -> Implicit Conversion (shortcutCtrl-Q), a popup menu shows you all possible conversions, and selects the conversion currently applied.