Bug 151855

Summary: Code generation formatter needs more options
Product: [Applications] umbrello Reporter: Ray Kosby <Ray.Kosby>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: CONFIRMED ---    
Severity: wishlist CC: code, ralf.habacker
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Ray Kosby 2007-11-04 18:44:17 UTC
Version:           1.5.8 (using KDE KDE 3.5.8)
Installed from:    Ubuntu Packages
OS:                Linux

I found very little to control the style of the generated code.  I would like to be able to configure where the beginning curly bracket goes (ie on the next line down instead of on the same line as the function).  I also would like to configure spacing between the function identifier and it's argument list.
Comment 1 Ralf Habacker 2019-11-10 17:13:10 UTC
The question is whether it wouldn't be better to use an external formatter after creation, which is already possible yet. 

In the end this would mean that you would have to implement a formatter like astyle or uncrustify. 

There could be a new entry in the code generation page of the settings dialog to specify a custom shell script or batch file, which will be executed in the output directory after code generating.
Comment 2 Robert Hairgrove 2020-08-11 14:31:45 UTC
Could something like this be "borrowed" from Qt Creator? I think they base the default style on KDevelop, IIRC.