intellij-ideapreviewcode-folding

IntelliJ IDEA change preview length of collapsed code


Is there a way to increase the length of the preview/greyed-out code, whenever a block is being folded?

So instead of seeing:ChangePas...ostRequest: <2 keys>
I'd like to see:ChangePasswordPostRequest: <2 keys> enter image description here


Solution

  • After >5 years of waiting, the feature is finally available in IntelliJ IDEA 2025.3 (see feature IJPL-64482).

    Currently only supported for yaml files.
    IntelliJ IDEA settings pane where the user can find the mentioned setting