November 23, 2011

Stephen Chu Stephen Chu
Lab Rat
50 posts

How do I disable the new C++ “code style”?

 

I don’t really like to be forced to style my code in any particular way. Or maybe I just don’t want to deal with fine tuning the new “code style” settings. Or it just doesn’t do what I want. Anyways. Is there a way to disable this feature?

3 replies

November 24, 2011

Tobias Hunger Tobias Hunger
Mad Scientist
3137 posts

Qt Creator always had the feature of inserting spacing, etc. for you. We need that when inserting chunks of code programmatically (e.g. when inserting snippets). Why do you suddenly not like that anymore?

The big change was not what we do there but how you can configure it. We do have profiles now, so it is easy to switch between several styles. Maybe you managed to switch profile to something you do not like (either globally or in one of the projects)?

November 24, 2011

Stephen Chu Stephen Chu
Lab Rat
50 posts

I’ve always have my editor setup to use tabs, not spaces. Now it always inserts spaces instead of tab. I finally realized it’s the coding style setup overriding my editor setup. How is that working the same way?

Basically, after upgrade the the RC, without changing anything, the behavior changed.

Oh. And double-click selection is still broken.

November 24, 2011

Tobias Hunger Tobias Hunger
Mad Scientist
3137 posts

If behavior changed while upgrading, then please file a bug report [bugreports.qt.nokia.com]!

Yeap, double-click selection is a bug that is fixed in Qt 4.8. That is not released in time for Qt Creator 2.4, so we had to stick with Qt 4.7.4:-(

 
  ‹‹ Customize sorting of Widgets in Widget Box      Malfunctioning watch expressions with CDB ››

You must log in to post a reply. Not a member yet? Register here!