Bug 272335

Summary: Newly defined formatting styles should also be available for other mimetypes
Product: [Applications] kdevelop Reporter: Wolfgang Bangerth <bangerth>
Component: AstyleAssignee: kdevelop-bugs-null
Status: REPORTED ---    
Severity: wishlist CC: aleixpol
Priority: NOR    
Version: 4.2.1   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Wolfgang Bangerth 2011-05-03 16:46:37 UTC
Version:           4.2.1 (using KDE 4.6.0) 
OS:                Linux

If I'm unhappy with any of the predefined source formatting styles, I can create a new style and edit it. However, this is only relative to the current mimetype selected at the top of the dialog: I can add and edit a new style for c++ header files (mimetype text/x-c++hdr), for example, but if I want to also use it for c++ source files (mimetype text/x-c++src) -- a completely reasonable thing to do -- I have to add and define the same style a second time because the list of styles for x-c++src doesn't include the style previously defined for x-c++hdr.

My suggestion therefore is to have the list of styles be global, rather than relative to the current mimetype.

Thanks
 Wolfgang

Reproducible: Always