Unsolved How to align slashes, equals etc. in Qt Creator?
-
Hi; I want to align slashes etc. like Emacs in Qt Creator. How can I do that? Thanks. Example code:
#define CHECK(n) \ switch (n) \ { \ case 0: \ cout << 0 << endl; \ break; \ case 1: \ cout << 1 << endl; \ break; \ }
-
You can use the beautifier menu. which will use an external program to format your code. I use uncrustify, which can be long to configure but produces highly customisable output.
-
Thanks, but I don't understand that. Can you give me information?
-
@Ibrahim said:
Thanks, but I don't understand that. Can you give me information?
What don't you understand?
What's your platform? I guess linux since you're mentioning emacs. Then install one of the code formatting tools from the aforementioned link, tell QtCreator about it and edit your coding style. This last step highly depends on the chosen formatter. -
I am using Windows. I don't understand 'Uncrustify command' and 'Use customized style'. What is they? How can I set they?
-
@Ibrahim Search for it! http://uncrustify.sourceforge.net/