How can I modify the template for generating setters in CLion?

Answered

In CLion, we can generate setters from fields by: Code -> Generate... -> Setter. But how can I modify the template for the code generation to change, for example, the generated setter parameter name?

1
3 comments

Hi David!

You can adjust names for fields and parameters in File | Settings | Editor | Code Style | C/C++ > Naming Convention.

0

Anna Falevskaya Thank you, but this way, I change the convention for all fields, while I want to change the naming convention just for setters.

0

Unfortunately, there is no such possibility for now. Feel free to create a feature request in our tracker: https://youtrack.jetbrains.com/issues/CPP

0

Please sign in to leave a comment.