<p/>IntelliJ/Android Studio 中 Javadoc 中的标记 [英] <p/> tag in Javadoc in IntelliJ / Android Studio

查看:25
本文介绍了<p/>IntelliJ/Android Studio 中 Javadoc 中的标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在 Android Studio 和其他 Jetbrains 产品中重新格式化代码,则会在某些地方创建一个小标签.

There is the small tag which is created at some places if I reformat the code in Android Studio and other Jetbrains products as well.

我该如何预防?

推荐答案

<p/> 标记在空行上生成,以便它们显示在 javadoc 中.

The <p/> tag is generated on empty lines so that they are shown in the javadocs.

如果您愿意,可以在重新格式化代码时将其关闭.

If you want to, you can turn this off when you reformat the code.

在 Android Studio 中,转到文件 -> 设置 -> 代码样式 -> Java -> JavaDoc 选项卡 -> 取消选中 Generate "<p/>"在空行上

In Android Studio, go to File -> Settings -> Code Style -> Java -> JavaDoc tab -> Uncheck Generate "<p/>" on empty lines

以下是带有和不带有段落标签的文档的外观,右侧是快速文档窗口中的文本.

Here is what the documentation will look like with and without the paragraph tag, where on the right is the text from the quick docs window.

只要考虑到这一点.

这篇关于&lt;p/&gt;IntelliJ/Android Studio 中 Javadoc 中的标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆