spacer
  • Features
  • Documentation
  • Download
    • Stable
    • Milestone
    • Nightlies
  • Blog
  • Team
  • Roadmap

Implicit Highlighting

  • ScalaIDE Documentation »
  • Scala IDE Helium »
  • New Features »

Implicit Highlighting

Implicit annotations are a very powerful feature in Scala. They allow for fluid DSLs, an amazing collection library, or enriching existing types. With great power comes great responsability, and a desire to control. Meet Implicit Highlighting!

Implicit highlighting

spacer

Notice that the string is underlined, and a marker is added to the left gutter. This signals that the method format was added through an implicit conversion. If you move your mouse on the gutter, you will see the actual conversion (augmentString).

spacer

There is also a QuickFix available (CMD-1) that makes the call the implicit conversion explicit!

spacer

Configuration

By default, only implicit conversions are highlighted. This makes sense, since most of the times implicit values that are passed around are not too costly, nor interesting. However, if you’d like to show those as well, you can enable them from the Implicits preferences page.

spacer

Thank you

This feature was contributed by Jin Mingjian and improved by David Bernard and Mirko Stocker. Thank you!

Contents

Creative Commons

gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.