Intellij (Android studio) member variable prefix
Solution 1:
In Mac OS
- Android Studio -> Preferences -> Code Style -> Java
- on the right panel, click on the right arrow until you see
code generation tab
- Click ok
Solution 2:
Try going to File-->Other Settings-->Default Settings. Your should be able to make prefixes for every other project that you do if you change prefix settings with the scheme set to default instead of Project. The prefix change would be in Java and Code Generation. That will fix setters and getters.
Solution 3:
In AS 2.2.1:
File > Settings > Editor > Code Style> Java > Code Generation > Naming > Name Prefix Field / Name Prefix Static Field
Solution 4:
- Open Android Studio's preferences (from the Android Studio menu on Mac and from File -> Settings on Windows and Linux).
- Expand Editor and then expand Code Style.
- Select Java, then choose the Code Generation tab.
- In the Naming table, select the Field row and add
m
as the name prefix forfields
. Then adds
as the name prefix forstatic
fields.
- Click Ok