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:


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!

Comments below can no longer be edited.

1 Response to Improved Expression Evaluation in IntelliJ IDEA 14

  1. Avatar

    Frederik Scheper says:

    August 20, 2014

    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?

Discover more