Evaluate many expressions at once in Intellij Idea

At Intellij Idea, I'm looking for a way to evaluate many expressions in debug mode with a single command.

Usually I can evaluate a single command with Right Click β†’ Evaluate Expression( ALT+ F8). I would like to be able to evaluate a bunch of expressions like:

System.out.println(myVar1);
System.out.println(myVar2);

In Eclipse, you can run such a β€œscript of expressions,” but I cannot find a solution in Idea.

+4
source share
1 answer

In the expression expression ( Alt+ F8) dialog box, you must click "Code Snippet Mode", and you can enter as many lines as you want, instead of one line - the default is "Expression Mode".

enter image description here

enter image description here

" ".

+6

All Articles