How can I modify the template for generating setters in CLion?
已回答
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?
请先登录再写评论。
Hi David!
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.