Eric Zheng
Eric Zheng

Reputation: 1144

How to print out result with Intellij scala console in Mac

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

Answers (2)

Nick Rubell
Nick Rubell

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

卢声远 Shengyuan Lu
卢声远 Shengyuan Lu

Reputation: 32014

It is: command + enter in Mac.

BTW, in Windows, open 'settings', search 'keymap'.

And configure the 'Scala' -> 'Execute Console Statement', as follows.

enter image description here

Upvotes: 1

Related Questions