docblockr icon indicating copy to clipboard operation
docblockr copied to clipboard

Preserve indentation for single-asterisk comment blocks and prefix new lines with an asterisk

Open Arcesilas opened this issue 6 years ago • 2 comments

Hi,

When typing a new multiline comment, the indentation is lost:

    /*<Enter>

produces:

    /*
    <cursor>
    */

Then, when typing whatever key (including <tab> or <space>), here's what happens:

    /*
a<cursor>
    */

While I'd prefer to have

   /*
    * <cursor>
    */

(which I see can be considered as an output customization which functionnality is heavily requested) at least, keeping the indentation would be nice. Seems like a bug to me. Is it ?

Arcesilas avatar Sep 13 '17 13:09 Arcesilas

I see this as an optional feature, this isn't common in some programming languages.

MoritzKn avatar Sep 13 '17 18:09 MoritzKn

Prefixing new lines with an asterisk is actually not important, in my opinion. I mentioned output customization for this reason. The fact that the indentation is lost seems more problematic to me...

Arcesilas avatar Sep 13 '17 19:09 Arcesilas