I use IDEA 2016.3 (but the problem existed in previous versions too):
When I call inline documentation (Ctrl+J on Mac, Ctrl+Q on Win) for Java methods it opens Documentation for window, and it is pretty good formatted according to JavaDoc guides, except {@code XXX}
blocks have the same style as normal text. See the attached example for java.util.HashMap#get
method and compare it with the reference from Oracle site:
The root of the problem, probably, that the documentation is already monospaced. So, maybe there is a way to highlight the code blocks with a background? Or to make the default documentation text in non-monospaced font?
UPDATE:
the same issue on Windows with Segoe UI default font (non-monospace):
As far as I know the quick documentation window does not have a monospaced font by default in IntelliJ IDEA. To revert the documentation back to a proportional font:
Invoke Find Action... Ctrl/CmdShiftA and type Registry Enter. Disable the documentation.component.editor.font
option in the Registry dialog that appears. Be careful with the other configuration options, because it is possible to break your IntelliJ IDEA installation with an incorrect setting.