java - IntelliJ code style for specific variable names -


i using android studio , in code style settings have order code generation:

  1. static fields
  2. instance fields
  3. constructors
  4. instance methods
  5. static methods
  6. inner classes
  7. static inner classes

this fine, except classes implement parcelable interface creator constant moved top of class this:

public class task implements parcelable {    public static final parcelable.creator<task> creator = new parcelable.creator<task>() {     public task createfromparcel(final parcel source) {       return new task(source);     }      public task[] newarray(final int size) {       return new task[size];     }   };    public static final task[] empty_task_array = new task[0];    private static final string tag = task.class.getsimplename();    private final datetime mstartdate;   private final datetime menddate;   private final int mid; 

i want creator constant appear @ bottom of class, don't want affect positioning of other constants. there way apply code style in intellij specific variable names (and more useful apply code style specific variable names in classes implement interfaces, e.g. parcelable)?

you can add own matching rule specific variable names:

in android-studio go settings -> editor -> code style -> java -> arrangement

if want variable named creator appear on bottom add matching rule , position accordingly:

field public static final name:creator

check screenshot details.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -