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.

How can I prevent that?

enter image description here

有帮助吗?

解决方案

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.

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

Where to turn off generation of the p tag

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.

Example of the docs with and without p tag.

Just take that into consideration.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top