"Code Fragment" button missing

Answered

I'm running the latest version of IntelliJ IDEA.Ultimate I can't seem to find the "code fragment" button in the "evaluate expression" window in any of the 3 themes. Image attached. Any ideas?

IntelliJ IDEA 2017.2.5 Build #IU-172.4343.14
JDK: 1.8.0_152-release
VM: OpenJDK 64-Bit Server VM
Vendor: JetBrains s.r.o
OS: Windows 7

 

 

5 comments
Comment actions Permalink

Select the code first, you should get the fragment window automatically:

0
Comment actions Permalink

If I do that, it just compacts all the rows into 1 row. I was thinking it might be a setting somewhere, but I couldn't find it.

0
Comment actions Permalink

It shouldn't do that if you have selected multiple lines.

Might be a bug, feel free to report at https://youtrack.jetbrains.com/issues/IDEA with the exact steps to reproduce.

0
Comment actions Permalink

I found out how to do it on IntelliJ 2018.2.2 CE.

In the evaluate window, to the right of the box where you enter the expression, there is an icon with two arrows pointing away from each other. Press that to expand to code fragment mode.

0
Comment actions Permalink

In my case, the button you mentioned was missing. I ended up reinstalling IntelliJ to fix it.

0

Please sign in to leave a comment.