How can I modify the template for generating setters in CLion? Follow
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?
Please sign in to leave a comment.
You can adjust names for fields and parameters in File | Settings | Editor | Code Style | C/C++ > Naming Convention.
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.
Unfortunately, there is no such possibility for now. Feel free to create a feature request in our tracker: https://youtrack.jetbrains.com/issues/CPP.