Reputation: 1144
I am using IntelliJ to develop my Scala program. I run Scala console to interactively execute some code, but I fail to print the result. The official document says Ctrl+Enter will help, but I have tried that and it doesn't work.
Upvotes: 0
Views: 982
Reputation: 31
It is not possible in version 14.1 due a bug. See https://youtrack.jetbrains.com/issue/SCL-8521
Use sbt console as a workaround.
Upvotes: 0
Reputation: 32014
It is: command + enter in Mac.
BTW, in Windows, open 'settings', search 'keymap'.
And configure the 'Scala' -> 'Execute Console Statement', as follows.
Upvotes: 1