Is there a way to change the pointer star (*) placement in Qt Creator?
-
I've been using Qt Creator for some time but the only thing that bothers me is the way Qt Creator places the *-symbol like this (when pasting code or automatically updating the header file etc.):
@Type *name;@while I strongly prefer it like:
@Type* name;@I haven't found any setting related to this under Tools => Options.
Is there any way I can change how Qt Creator handles this? -
Tools -> Options -> C++ -> Code Style -> Edit -> Pointers and References
This feature was introduced quite recently (Qt Creator 2.7.2, IIRC)
-
After installing the latest version of Qt Creator I'm able to see the the setting.
However, trying it out yields not-expected results...
!http://i.imgur.com/TUvuPnV.png!I've ticked only "Type name" and "Left const/volatile" in the Pointers and References tab which makes the preview look good.
Thanks for your help.
-
Hmm... looks like you've found a bug. It doesn't work on my system either. Would you like to file a bug report at https://bugreports.qt-project.org/ ?
-
I've reported a bug.
https://bugreports.qt-project.org/browse/QTCREATORBUG-10124
Thanks for your reply.
-
Great; thanks for the report and the link :)