In newer versions of IntelliJ, value of properties used in @Value annotation (and maybe in other contexts) are shown like this:

This doesn't work if you have clicked on the preview or because sometimes IntelliJ ignores it:

How is it possible to force IntelliJ show the property value?
Place the caret on the key inside @Value annotation and press Ctrl + - shortcut.
To do the reverse (show the key), either click on the value preview or press Ctrl + + shortcut.
I find this Ctrl + - shortcut to be very useful to fold any code block; for example you can use it inside a Javadoc to collapse it altogether.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With