Meet The New Scala Worksheets in IntelliJ IDEA

A few months ago we’ve significantly improved the Scala Worksheets performance. Today we made them even better, and by that we mean more user-friendly.

Now you can fold the output without affecting code on the left side, and expand only blocks output that match a specific statement:

scala_worksheet_2

 

 

Plus, you can improve evaluation performance by clearing the Make project option on the toolbar which disables automatic checking of project changes.

The new Scala Worksheets are available in the latest nightly build of the Scala plugin for IntelliJ IDEA 13.

Develop with Pleasure!

 

About Andrey Cheptsov

Andrey Cheptsov is IntelliJ IDEA product marketing manager at JetBrains. He's passionate about productivity, programming languages and tools.
This entry was posted in New Features and tagged . Bookmark the permalink.

18 Responses to Meet The New Scala Worksheets in IntelliJ IDEA

  1. Bill says:

    How do you open a new worksheet?

  2. Ross says:

    That’s awesome! Keep up the great work.

  3. Eric P says:

    Looks great! Good job guys!

  4. David Perez says:

    I also like this feature, more handy than the REPL. It’s useful.

  5. Alex says:

    Please fix this

    “object someobject {
    val x = new SomeClass(…)
    }

    class SomeClass(…){…}
    —-
    The evaluation only print two lines of results: 1. defined module someobject; 2. defined class SomeClass. And whatever I write in object is not evaluated (at least no results).”

    • Alexander Podkhalyuzin says:

      We will fix for Eclipse compatibility reasons. However, as workaround just don’t wrap your expressions into object.

      Best regards,
      Alexander Podkhalyuzin.

  6. Justinhj says:

    Does this work in the community edition?

  7. Daniel Zhang says:

    Thanks for the update. Is there a way to keep folded output open during successive runs of a Scala worksheet? Perhaps, there could be an option to automatically expand all folded output.

  8. Guillaume says:

    We have an online version here: codebrew.io

  9. Alex says:

    Worksheets stucks in 10-20 minutes. IDE just stops responding on keys. Mouse works, cut/paste too. Have to restart it too frequently.

  10. Alex says:

    Also, i don’t like auto-restarts. There should be an option if i want to run the code, or it should play automatically. Auto starts are bad for long running code.

  11. Alex says:

    You know what???
    Worksheet gives java.lang.StackOverflowError where it should be fine!

    def count(start: Int, stop: Int): Int =
    if(start < stop) count(start + 1, stop)
    else start

    count(1, 400000)

  12. 堀北真希 ドラマ youtubeの再生回数なんていくら伸びても恥ずかしいだけだろ
    人事異動に一社員が「理解できない」のなら辞めるしかないな
    有権者(投票券)総数が不明だから操作し放題だけどな

    When you’ve selected the subject which you want to share with you,
    the next step would be to know that which you audience
    is getting. Here are a number of tips to show you through and help you produce a highly effective essay.

    堀北真希 CM imageblogs.net What do you desire
    your husband to look at away after he reads it.
    With just a little bit of your energy investment, along with the right tools
    at your disposal, it is possible to easily understand how to
    earn money online writing.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">