Bug 151855 - Code generation formatter needs more options
Summary: Code generation formatter needs more options
Status: CONFIRMED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-04 18:44 UTC by Ray Kosby
Modified: 2020-08-11 14:31 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.