At the beginning of my Scala files in a particular project, I often have lines like these:
package com.mycompany
package subproject
import common._
import uiutils._
import databinding._
import modeling._
Is there a way to create an object ProjectImports
(or package object) that “preimports” all of these imports such that I can then simply write
import ProjectImports._
instead of the whole list, in each of my other project files?
Is this related to the way the scala
package is imported in Predef
with scala.`package`
?