Improved Expression Evaluation in IntelliJ IDEA 14

If you ever tried IntelliJ IDEA debugger (which I’m sure you did), you know how important it is to be able to evaluate an expression quickly, without using the Watches or Variables tab. That’s why the Evaluate Expression (Alt F8) is one of crucial features available in IntelliJ IDEA debugger. However, not everybody knows that IntelliJ IDEA can also display a result of any expression when you click it holding Alt, or just hover the mouse over it.

Sometimes it’s even easier and faster than using a shortcut, even if you prefer to use keyboard instead of mouse. The only limitation this feature used to have is that it didn’t support clicking or hovering over operator expressions. Well, until now, because today we’are happy to announce that IntelliJ IDEA 14 will correct this injustice and extend the support of this feature to operator expressions as well.

Here’s how it works for unary, binary, and ternary operations:

instant_evaluation

You’re welcome to give this feature a try (you need the latest IntelliJ IDEA 14 EAP build for that.) We appreciate your feedback in our discussion forum and issue tracker.

Develop with Pleasure!

About Andrey Cheptsov

Part-time dreamer. JVM/JavaScript geek. IntelliJIDEA Marketing Manager at JetBrains.
This entry was posted in New Features and tagged , , . Bookmark the permalink.

2 Responses to Improved Expression Evaluation in IntelliJ IDEA 14

  1. Frederik Scheper says:

    Wow, I never knew about the alt button shortcut!
    Not directly related, but it would be very nice if the IDEA debugger would be a bit more reflection aware, in the sense that a smart step into (shift-f7) of method.invoke() would show the option to step into the method that’s going to be called by reflection.

    Or is this already possible and have I missed that, too?

  2. Pingback: Intellij Idea 14 » news.dreamsoft.pl

Leave a Reply

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