IntelliJ IDEA-在Java文档注释中呈现HTML标记

IntelliJ IDEA-在Java文档注释中呈现HTML标记,java,intellij-idea,documentation,comments,markup,Java,Intellij Idea,Documentation,Comments,Markup,有没有办法在IntelliJ IDEA中临时呈现文档注释中的HTML标记?我希望能够做到这一点,因为它使阅读一些文档变得更容易。例如,从JUnit源中考虑以下代码段: /** * The <code>Test</code> annotation tells JUnit that the <code>public void</code> method * ... * ... * <p> * A simple test looks

有没有办法在IntelliJ IDEA中临时呈现文档注释中的HTML标记?我希望能够做到这一点,因为它使阅读一些文档变得更容易。例如,从JUnit源中考虑以下代码段:

/**
 * The <code>Test</code> annotation tells JUnit that the <code>public void</code> method
 * ...
 * ...
 * <p>
 * A simple test looks like this:
 * <pre>
 * public class Example {
 *    <b>&#064;Test</b>
 *    public void method() {
 *       org.junit.Assert.assertTrue( new ArrayList().isEmpty() );
 *    }
 * }
 * </pre>
 * <p>
 * The <code>Test</code> annotation supports two optional parameters.
 * The first, <code>expected</code>, declares that a test method should throw
 * ...
 * ...
 * <pre>
 *    &#064;Test(<b>expected=IndexOutOfBoundsException.class</b>) public void outOfBounds() {
 *       new ArrayList&lt;Object&gt;().get(1);
 *    }
 * </pre></p>
 * <p>
 * The second optional parameter, <code>timeout</code>, causes a test to fail if it takes
 * longer than a specified amount of clock time (measured in milliseconds). The following test    fails:
 * <pre>
 *    &#064;Test(<b>timeout=100</b>) public void infinity() {
 *       while(true);
 *    }
 * </pre>
 * <b>Warning</b>: while <code>timeout</code> is useful to catch and terminate
 * infinite loops, it should <em>not</em> be considered deterministic. The
 * ...
 * ...
 * <pre>
 *    &#064;Test(<b>timeout=100</b>) public void sleep100() {
 *       Thread.sleep(100);
 *    }
 * </pre>
 *
 *
 * @since 4.0
 */
* *
Test
注释支持两个可选参数。 *第一个,
expected
,声明测试方法应该抛出 * ... * ... * *警告:while
timeout
用于捕获和终止 *无限循环,它不应该被认为是确定性的。这个 * ... * ... * * @测试(超时=100)公共无效休眠100(){ *睡眠(100); * } * * * *@自4.0以来 */ 所有的标记,更不用说HTML编码,使得解析文档有点困难


我试着寻找一种方法来做到这一点,但没有任何有意义的结果。可能我没有使用正确的关键字?

您可以使用快速文档(Ctrl-Q/菜单->查看->快速文档),无论是在注释本身中(这意味着插入符号在注释中),还是在引用符号的代码中的某个位置,例如在中的测试中


您可以使用快速文档(Ctrl-Q/菜单->查看->快速文档),无论是在注释本身中(这意味着插入符号在注释中),还是在引用符号的代码中的某个位置(例如,在中的测试中)

@Test
public void myTest() throws Exception