tag in Javadoc in Android Studio

2020-03-08 09:00发布

问题:

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?

回答1:

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

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.

Just take that into consideration.