Solved Qt Creator space between function name and opening parameter bracket
-
Instead of "func(parameter)" I prefer "func (parameter)".
Qt Creator supports this very nicely.
A few months ago I started using a second machine, switching between both every now and then. The newer one squeezes the bracket right behind the function name ("func(parameter)") by default.
I have compared every single setting I could find and even exported and imported the code style configurations, but to no avail.The newer machine always suggests "func(parameter)" while the old one suggests "func (parameter)". Not that it's a big deal but I can't bear it anymore that I'm too blind or dumb to find the setting that's responsible for this.
Can someone please help with this?
-
@Padlock which Creator versions are that exactly? Do you have Clang Code Model or Beatyfier running on one of them?
Regards
-
I usually always update when the software suggests it. On one machine it's 4.10.1, hence I reckon it's the same on the other.
When I go to Tools/Options/C++/Code Model it says Clang-only checks for almost everything [built-in]. I can't see anything about a Beautifier.
-
Hi @Padlock,
So you should check Help > About Plugins on both instances if there is something different.
Not that it's a big deal but I can't bear it anymore that I'm too blind or dumb to find the setting that's responsible for this.
If it helps you: I don't think there is a default setting for that. I think it must come from a plugin, likely the Clang Code Model.
Are both Creators on the same platform?
Regards
-
After a bit over a year, I finally found the reason. :-)
Tools -> Options -> Text Editor -> Completion
The checkbox to tick is "Insert space after function name".