Is adding KDoc to Kotlin enum values a supported f...
# intellij
p
Is adding KDoc to Kotlin enum values a supported feature? IntelliJ is refusing to autoformat the KDoc so I have to do it manually.
d
Yeah it renders strangely.
c
What do you mean? KDoc is different from javadoc in terms of formatting. While with javadoc we have an ordered template:
Copy code
<Description>
@param <param1>
@param <paramN>
...
with KDoc it is recommended to write free-form freemarker and integrate params, return, etc into the text, so there is no formatting like for javadoc.
p
try adding kdocs like this to enum values
Copy code
enum class MyEnum {

    /**
     * Current dog
     */
    DOG,

    /**
     * Within the cat
     */
    CAT,

    /**
     * Current fish
     */
    FISH
}
i had to pretty much manually wrap them and add the correct
*
so that it would match javadoc in style
c
Tried it, works as expected for me. Maybe you have something disabled in the settings? I typed
/**<enter>
and got:
Copy code
/**
 * 
 */
385 Views