tag in Javadoc in IntelliJ / Android Studio

前端 未结 1 1132
粉色の甜心
粉色の甜心 2021-01-07 22:47

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条回答
  •  清酒与你
    2021-01-07 23:23

    The

    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 "

    " 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.

    0 讨论(0)
提交回复
热议问题