Javadoc improvements in IntelliJ IDEA 10.5
March 23rd, 2011 by Denis.ZhdanovWe are coming close to opening the Early Access for IntelliJ IDEA 10.5 which we have announced some time ago. So, we are starting a series of blog posts that will describe some additions we are introducing in this new release.
Here is a list of newly added features that simplify working with Javadocs even more. Note that all of them are available in both Ultimate and Community Editions:
- Smart enter — caret moves to an expected position after pressing ‘Enter’ in situations like the one below:
/** * <ul> * <li>[caret] * [caret moves here on Enter] * </ul> */ class Test { }
- Automatic insertion of closing tag — controlled by a corresponding new setting that resides under ‘IDE Settings | Editor | Smart Keys’;
- Customizable font size — documentation popup font size can be changed on the fly with Ctrl+mouse wheel or via a dedicated GUI control:
Stay tuned for the news about IntelliJ IDEA 10.5 EAP availability!
Tags: Code Assistance, JavaDoc, Xena

March 23rd, 2011 at 12:57 pm
With the “smart enter” in javadocs, will IDEA also receive the ability to properly format HTML code in javadocs when using “reformat code” (for example today it will just slam it all in one line)? When using HTML in javadocs, it prevents you from doing a reformat on an entire file as a result.
March 23rd, 2011 at 1:13 pm
How about “smart return” in http://youtrack.jetbrains.net/issue/IDEA-18505 ?
March 23rd, 2011 at 2:31 pm
Great. Any chance to make this also available to ASDoc in 10.5? See also http://youtrack.jetbrains.net/issue/IDEA-66746. ASDoc editing is the only area, where FlashBuilder is still better than IDEA.
March 24th, 2011 at 10:25 am
I hope this will be also fixed in 10.5
http://youtrack.jetbrains.net/issue/IDEA-54829
March 28th, 2011 at 1:42 am
2Jason: the only solution for now is to surround target javadoc snippet that shouldn’t be reformatted by <pre> tags.
2Oleg: that issue doesn’t have high priority for now
@Carsten: I’ll ask developers that work with ActionScript support to have a look here
June 7th, 2012 at 6:52 pm
I’m using IntelliJ 11 and the HTML in my JavaDoc still gets munged. Did this feature never make its way to 11? This has been one of my biggest complaints for at least 6 years. It would be nice if this would be addressed.
June 10th, 2012 at 5:10 am
Hi Jeffrey,
All of the mentioned features are available at v.11. Please create dedicated ticket at the tracker and provide detailed problem description if any of them doesn’t work for you.
Denis