clion code style and formatting problem with string

Completed

I like the clion, but one thing keeps troubling me is when I format the file, it will always format PRIu32 (and other similar ones) into a new line, for example, I would like the line to be 

printf("I would like to print an uint32_t such as %" PRIu32 ", this is the end of string.");  

but what I get is 

printf("I would like to print an uint32_t such as %" 
PRIu32
", this is the end of string.");

how can I change this? Thank you! 

 

3 comments
Comment actions Permalink

Hello!

What CLion version do you use?

Do you use CLion's builtin formatter or ClangFormat?

0
Comment actions Permalink

Hi Anna, 

    I am using the latest version of CLion (2020.2) and I am using the builtin formatter. 

0
Comment actions Permalink

Please send to clion-support at jetbrains.com the following materials:

1) A screenshot of the bottom right of CLion's window

2) The idea.log file (Help | Show Log in ...). Note that logs might contain private user's information (like file paths and names).


3) Your code style settings 

0

Please sign in to leave a comment.