Bug 357879

Summary: [feature-request] Automatic continuation of multiline comments
Product: [Applications] kate Reporter: Jan Pavlicek <jan.pavlicek>
Component: indentationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: wishlist CC: jan.pavlicek
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: All   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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.