How do I configure Android Studio "v 1.1" to correctly generate getters and setters for member variables with prefixes and not to generate getters like: getmName()
and instead generate getName()
?
I've looked at many questions like : Intellij (Android studio) member variable prefix, but it seems to be removed in "Version 1.1"
Am i right?
in preferences -> code style -> java
you'll find the tab code generation. There you will find a matrix of text box, where you can define prefix and suffix for field, static field, parameter and local variable. Enter m
for the pair (Name Prefix, Field) and it should work
Editor->Code Style->Java, then last tab 'Code Generation'
write m in field's 'Name Prefix' column.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With