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

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -