Combine two Scala interpreters together
Follow up from https://groups.google.com/forum/#!topic/scala-ide-user/TdK7BJleLtE
As a Scala developer I'd like to have a single Scala interpreter in Scala IDE
So that I can run Scala code interactively within Scala IDE.
Functional requirements:
1) Code auto complete (either tab or ctrl-space), the latter is preferred.
2) Running selected code with a shortcut. It works very well in RStudio like this:
- to run selected code - ctrl-enter
- to run all code in a text editor - ctrl-a-enter
3) Running code from a command line. At the moment Scala interpreter for selected code in Scala-IDE allows for writing multiple lines before executing it. Change it for a single line execution only (like in sbt console). If user wants to run multiple lines he can always write them in a text editor and then run as a selected code
As a Scala developer I'd like to have a single Scala interpreter in Scala IDE
So that I can run Scala code interactively within Scala IDE.
Functional requirements:
1) Code auto complete (either tab or ctrl-space), the latter is preferred.
2) Running selected code with a shortcut. It works very well in RStudio like this:
- to run selected code - ctrl-enter
- to run all code in a text editor - ctrl-a-enter
3) Running code from a command line. At the moment Scala interpreter for selected code in Scala-IDE allows for writing multiple lines before executing it. Change it for a single line execution only (like in sbt console). If user wants to run multiple lines he can always write them in a text editor and then run as a selected code
Leave a comment
The second one is already possible, the default key binding is SHIFT+CTRL+X. It can be changed in Preferens > Keys > "Send Selection to Scala Interpreter".
Point 1 and 3 should be quite easy to implement actually.