sandalone
sandalone

Reputation: 41749

Set IDEA to make Java-based suggestions?

IDEA suggests (among other things) name for some method or class member and so on.

How can I set it to propose name in the spirit of Java language?

For example, I want to create a class member of type MyClass and I want IDEA to propose the name mMyClass, instead of myClass (which is default behaviour)?

PS. I use Java as part of Android development. Here is Android Code Style.

Upvotes: 1

Views: 40

Answers (1)

NimChimpsky
NimChimpsky

Reputation: 47280

settings > code style > java > code generation > naming

but putting m at the front for a method goes against convention. It sounds like a borked version of hungarian notation.

Upvotes: 2

Related Questions