New code reformating option "auto indent fields"

Would this be a nice feature?

Please comment here: http://www.intellij.net/tracker/resharper/viewSCR?publicId=9451


Foo1
		private int Aaaaa = 1; //fooo
		private int Bbb = 123; //fooo
		/// Foo3
		private String C = "Baaaaaarrrrrrrr"; //fooo
		/// Foo4
		private int Dddddddddddd = 12345678; //fooo
		/// Foo5
		/// bar
		private int Eeee = 12312; //fooo
		
 
After Reformat:		
		/// Foo1
		private int    Aaaaa        = 1;                 //fooo
		private int    Bbb          = 123;               //fooo
		/// Foo3
		private String C            = "Baaaaaarrrrrrrr"; //fooo
		/// Foo4
		private int    Dddddddddddd = 12345678;          //fooo
		/// Foo5
		/// bar
		private int    Eeee         = 12312;             //fooo






Empty lines should reset offsets


Before Reformat:
		private int Aaaaa = 1; //fooo
		private int Bbb = 123; //fooo
		private String C = "Baaaaaarrrrrrrr"; //fooo
		private int Dddddddddddd = 12345678; //fooo
 
		private int Eeee = 12312; //fooo
		private int F = 78; //fooo
		private int Ggg = 8; //fooo
		private int Hh = 678; //fooo
		
 
After Reformat:		
		private int    Aaaaa        = 1;                 //fooo
		private int    Bbb          = 123;               //fooo
		private String C            = "Baaaaaarrrrrrrr"; //fooo
		private int    Dddddddddddd = 12345678;          //fooo
 
		private int Eeee = 12312; //fooo
		private int F    = 78;    //fooo
		private int Ggg  = 8;     //fooo
		private int Hh   = 678;   //fooo]]>






Please comment here: http://www.intellij.net/tracker/resharper/viewSCR?publicId=9451

1 comment
Comment actions Permalink

Yes, this should be a nice feature!
Moreover, such alignment in code formatter is already planned to be
implemented, but the priority of this task is a little bit below normal.
This means that we are not going to do this in the nearest future :(

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Carsten Jendro" <no_mail@jetbrains.com> wrote in message
news:19857879.1125047273028.JavaMail.itn@is.intellij.net...

Would this be a nice feature?

>

Please comment here:
http://www.intellij.net/tracker/resharper/viewSCR?publicId=9451

>
>
>

 Before Reformat:
> private int Aaaaa = 1; //fooo
> private int Bbb = 123; //fooo
> private String C = "Baaaaaarrrrrrrr"; //fooo
> private int Dddddddddddd = 12345678; //fooo
> private int Eeee = 12312; //fooo
>
>
> After Reformat:
> private int    Aaaaa        = 1;                 //fooo
> private int    Bbb          = 123;               //fooo
> private String C            = "Baaaaaarrrrrrrr"; //fooo
> private int    Dddddddddddd = 12345678;          //fooo
> private int    Eeee         = 12312;             //fooo
>
>
>
>
>
>
>
> Should also work with remarks between lines.
>
>
>
>
> Before Reformat:
> /// Foo1
> private int Aaaaa = 1; //fooo
> private int Bbb = 123; //fooo
> /// Foo3
> private String C = "Baaaaaarrrrrrrr"; //fooo
> /// Foo4
> private int Dddddddddddd = 12345678; //fooo
> /// Foo5
> /// bar
> private int Eeee = 12312; //fooo
>
>
> After Reformat:
> /// Foo1
> private int    Aaaaa        = 1;                 //fooo
> private int    Bbb          = 123;               //fooo
> /// Foo3
> private String C            = "Baaaaaarrrrrrrr"; //fooo
> /// Foo4
> private int    Dddddddddddd = 12345678;          //fooo
> /// Foo5
> /// bar
> private int    Eeee         = 12312;             //fooo
>
>
>
>
>
>
> Empty lines should reset offsets
>
>
> Before Reformat:
> private int Aaaaa = 1; //fooo
> private int Bbb = 123; //fooo
> private String C = "Baaaaaarrrrrrrr"; //fooo
> private int Dddddddddddd = 12345678; //fooo
>
> private int Eeee = 12312; //fooo
> private int F = 78; //fooo
> private int Ggg = 8; //fooo
> private int Hh = 678; //fooo
>
>
> After Reformat:
> private int    Aaaaa        = 1;                 //fooo
> private int    Bbb          = 123;               //fooo
> private String C            = "Baaaaaarrrrrrrr"; //fooo
> private int    Dddddddddddd = 12345678;          //fooo
>
> private int Eeee = 12312; //fooo
> private int F    = 78;    //fooo
> private int Ggg  = 8;     //fooo
> private int Hh   = 678;   //fooo]]>

>
>
>
>
>

Please comment here:
http://www.intellij.net/tracker/resharper/viewSCR?publicId=9451



0

Please sign in to leave a comment.