Bug 357879 - [feature-request] Automatic continuation of multiline comments
Summary: [feature-request] Automatic continuation of multiline comments
Status: RESOLVED NOT A BUG
Alias: None
Product: kate
Classification: Applications
Component: indentation (other bugs)
Version First Reported In: unspecified
Platform: Other All
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-12 08:34 UTC by Jan Pavlicek
Modified: 2016-01-15 12:29 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Pavlicek 2016-01-12 08:34:37 UTC
I recently switchet to Kate from Geany and i really miss this feature. I belive that it can be a valid new feature that should be considered in future releases, since many people who use Kate for programming can benefit from it.

It works very simple, when you start a multiline (or documentation) comment (usually starting with /* or /**), most of the time you want the comment to continue on following lines like this:

    /**
     * @return void
     */

Automatic handlig of the continuation (when I hit enter after the first line, Kate automaticaly indents, writes the "*" on second line and ideally a space after) would be exceptionaly useful, especially for languages like PHP (no native annotations support, so there is a heavy use of doc comments), but I believe others could benefit from this either. Ofcourse, this would be best as an optional feature, enabled/disabled in settings.

Reproducible: Always
Comment 1 Dominik Haumann 2016-01-15 12:25:17 UTC
Which indenter do you use? In fact, the "C Style" indenter does exactly what you want.

Could you try this?

And: What version of Kate do you use?
Comment 2 Jan Pavlicek 2016-01-15 12:29:41 UTC
Ok, now I feel really stupid :-). I had no idea that using the C indenter will help, i had indenter set to "None". It works perfectly, thank you for the pointer and sorry for pointless feature request.