<分区>
我必须为项目中的每个 java 文件添加版权注释,如下所示:
/**
* Some text
*
* Some more text
*/
每次我用 Intellij 运行重新格式化时,它都会变成
/**
* Some text
* <p>
* Some more text
*/
是否可以禁用添加 <p>
进入每个空的评论行?
<分区>
我必须为项目中的每个 java 文件添加版权注释,如下所示:
/**
* Some text
*
* Some more text
*/
每次我用 Intellij 运行重新格式化时,它都会变成
/**
* Some text
* <p>
* Some more text
*/
是否可以禁用添加 <p>
进入每个空的评论行?
最佳答案
转到文件 -> 设置 -> 编辑器 -> 代码样式 -> Java -> JavaDoc 选项卡,然后取消选中 Generate "<p>" on empty lines
关于java - 禁止 Intellij 添加 <p> 到我的空注释行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50903718/