code formatter isn't reformatting or corrected APEX Doc comments if @AuraEnabled is showing up before the doc comments

7 views
Skip to first unread message

Patrick Visniewski

unread,
Apr 21, 2025, 2:39:04 PMApr 21
to Illuminated Cloud Q&A
Not sure this is really an issue now that I figured out the source.
The issue was the code formatter was ignoring APEX Doc comments and not aligning the leading * characters.

The problem seems to be that it doesn't like having an annotation before the doc comments.

So IE:
    @AuraEnabled
    /**
* @description foo
*/
    public static void foo() {}

would not reformat

but this does get reformatted.

    /**
* @description foo
*/
    @AuraEnabled
    public static void foo() {}

gets reformatted properly to:

    /**
     * @description foo
     */
    @AuraEnabled
    public static void foo() {}

Is this something that can be addressed in the formatting code?

thanks
Patrick


Scott

unread,
Apr 21, 2025, 2:40:06 PMApr 21
to Illuminated Cloud Q&A, Patrick Visniewski
Hi, Patrick. Can you please log this in the public issue tracker so that it's concretely on my radar?

Regards,
Scott Wells
Reply all
Reply to author
Forward
0 new messages