I did all the preference work, installed scala, everything works except this, i just can not test a scala class in the console window.
In tutorials I see they just type in something behind the scala> but it just won't work, i can type some random stuff there below which doesn't do anything when I press enter.
Can you guys help me out? I would be very thankful. Cheers
To install Scala plugin, press Ctrl+Alt+S , open the Plugins page, browse repositories to locate the Scala plugin, click Install and restart IntelliJ IDEA.
We can start Scala REPL by typing scala command in console/terminal.
On the Project pane on the left, right-click src and select New => Scala class. If you don't see Scala class, right-click on HelloWorld and click on Add Framework Support…, select Scala and proceed. If you see Error: library is not specified, you can either click download button, or select the library path manually.
Once you type on the Scala console in IntelliJ Community Edition. Hit Ctrl+Enter instead of enter to execute.
took me a while to get around it :)
IntelliJ & Working with Scala Worksheet
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With