Is this a Bug? Source Formatter=>Formatting Style seems to be session

Matthew Woehlke mw_triad at
Fri Apr 17 16:01:05 BST 2015

On 2015-04-16 08:39, René J.V. Bertin wrote:
> I recently noticed that all my formatting styles only existed in the
> Sessions they were created in.
> Is that normal?
> [...]
> It should probably be possible to have both session-specific styles 
> and personalised "global" styles. An export feature (and a personal 
> style/template directory) sounds like the way to go.

Actually, I don't think styles should be primarily per-session. It makes
sense, as you note, to be able to reuse styles globally. However, styles
should be *applied* per-*project*. In particular, if I open project A in
session B and configure its style, then open the same project A in
session C, it should use the style I configured in B. Doing anything
else is silly :-). (It's the same code; I'm most likely not going to use
a different code style depending on what other projects I have open.)

On the same note, it's unfortunate that style is applied AFAIK to an
entire session. It's often the case that in a given session, I am
working on multiple projects with multiple code styles. (Although I
suppose the session still needs a fall-back style for files that don't
belong to an opened project...)


More information about the KDevelop mailing list