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

查看:207
本文介绍了< P /> 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选项卡 - >取消选中生成< p />空行

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

以下是文档在带有和不带段落标记时的样子,右边是快速文本docs window。

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; Android Studio中的Javadoc标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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