2017-06-17 51 views
0

enter image description here enter image description here的IntelliJ:不能添加自定义的JavaDoc标签

enter image description here

什么问题?

如何在生成的JavaDoc中将pre定义为Precondition?例如,支持的标记@param被翻译为

Parameters: 
    ..... 

在生成的JavaDoc中。

+0

您看到的错误是由javadoc工具报告的,而不是由IntelliJ IDEA报告的,因此任何IntelliJ IDEA设置都与此处不相关。 – CrazyCoder

回答

0

最后我用一个变通:

/** 
* <pre> 
* "description here" 
* <b>Precondition:</b> "precondition here" 
* </pre> 
* 
* @param x An integer. 
* other tags... 
*/ 

标记应该在相同的格式,在生成的Javadoc其他支持的标签打印出定制的“前提条件”。根据需要调整。

相关问题