Is it possible to change the options in Clion so that the variables are aligned like so:
This should be applied in structs and methods.
Is it possible to change the options in Clion so that the variables are aligned like so:
This should be applied in structs and methods.
Yes.
Settings -> Editor -> Code Style -> C/C++ -> Wrapping and Braces -> Variable groups -> Align in columns
You can of course also use a custom formatting tool that does it as well.
*
declarations. Apparently the *
is still chosen as alignment character. –
Lacerta after all tuning you can also use shortcuts "Ctrl+Alt+L" to make alignment
© 2022 - 2024 — McMap. All rights reserved.