You can use scripts in IntelliJ IDEA Scala plugin. And simply run it from context menu.
Geoffrey Wiseman wrote:
In following an example early in the O'Reilly Labs "Programming Scala", I noticed that it seems like Scala supports a script-like ability to put code outside of any object; not sure if that's just translating into an application (object with main()) or what the mechanism is, but scala's fine with it, and the Scala Eclipse plugin doesn't seem to be; is this by design? Is there a way around it?
By way of example:
http://www.quicksnapper.com/geoffrey.wiseman/image/scala-eclipse-plugin-scripts