Android Studio: Auto prefixing of fields, static fields, parameters.

1. File => Settings

2. Editor = > Code Style => Java = > Code generation => Naming

codegeneration

 

public class Test {
    private String mString;
    static String sString;

    public String getString() {
        return mString;
    }

    public void setString(String pString) {
        mString = pString;
    }

    public Test(String pString) {
        mString = pString;
    }
}

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.