Search code examples
ideclionautoformatting

Prevent Auto Format from align Pointer to variable


When i click on Reformat Code Clion changes my pointers

from:

int* pointer;

to:

int *pointer;

How can i prevent that from happening?

I searched through the settings but couldn't find anything.


Solution

  • The alignment of pointers can be set in the code style settings.