1

I want to be able to declare multiple short javadocs like this:

private static int VALUE1 = 1; ///< This is one.
private static int VALUE2 = 2; ///< This is two.
private static int VALUE3 = 3; ///< This is three.

I know some tools supports same-line documentation comments like this. Is it possible in IntelliJ IDEA / Android Studio?

G-Shadow
  • 188
  • 3
  • 13
  • What is the purpose? Also see this: https://stackoverflow.com/questions/43375177/warning-dangling-javadoc-comment – Koyasha Jun 05 '20 at 12:08
  • 1
    When declaring a list of similar looking constants/fields, it looks ugly placing comments between them. Such lists looks much better formatted like my sample code shows. – G-Shadow Jun 05 '20 at 13:51
  • You can insert the `/* */` block comments at the end of each line with `Ctrl+Shift+/` – Koyasha Jun 05 '20 at 15:16
  • 1
    I could insert // single-line comment as well. But it is NOT javadoc I asked for. – G-Shadow Jun 06 '20 at 07:08

0 Answers0