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

查看:229
本文介绍了< 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/>标记是在空行上生成的,因此它们将显示在javadocs中.

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/>" on empty lines

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天全站免登陆