Intellij Scala math functions import -
new intellij idea/scala i'm wondering there shortcut auto import scala packages.
example:
package test object testclass extends app{ var = pow(22,22) println("hello world" + ); }
it wont compile until import statment added
import scala.math._
coming eclipse/java expected crtl + shift o (or auto import) offered me math package, must type import myself ?
sometimes yes, no. depends on you're searching for.
if write math
intellij doesn't know is. if write math.
, that's in scope , offer menu of methods on math
object.
if write date
, alt-enter should bring menu of import options. choose 1 , import statement inserted code.
Comments
Post a Comment