Code Style -> Order of members

In Ide Settings there is a (relatively) new option Code Style->Order of
members.

Is this working? Andif so how/when is it supposed to work?

Doing a Reformat Code doesn't seem to reformat according to this option.


4 comments
Comment actions Permalink

It has nothing to do with Reformat Code. These settings are only used for
creating new members (e.g. by refactorings etc).
BTW, how did you come to think that "reformat" means to reorder members?
Just curious...

--
Valentin Kipiatkov
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"

"Carlos Costa e Silva" <carlos@keysoft.pt> wrote in message
news:ap4t66$q22$1@is.intellij.net...

In Ide Settings there is a (relatively) new option Code Style->Order of
members.

>

Is this working? Andif so how/when is it supposed to work?

>

Doing a Reformat Code doesn't seem to reformat according to this option.

>
>


0
Comment actions Permalink

"Valentin Kipiatkov" <valentin@intellij.com> wrote in message
news:ap6n75$5cf$1@is.intellij.net...

It has nothing to do with Reformat Code. These settings are only used for
creating new members (e.g. by refactorings etc).
BTW, how did you come to think that "reformat" means to reorder members?
Just curious...


Posts in the newsgroups about manually editing config files and setting the
order of members...

Probably I read things that weren't there and thought that it also applied
to reformats :)

Carlos




0
Comment actions Permalink

I have to say that I was confused about this too. I just assumed that,
since the majority of the Code Style settings are taken into consideration
by Reformat Code, the order of members would be too.

Thinking about it some more, though, I agree that the current behavior is
correct and that i'd probably be annoyed more often than not if Reformat
Code magically moved members around ("...hey! where'd foo() go?").

I guess if anyone cares enough they can submit an SCR for a separate
"Reorder Code" action (i don't, though, so i won't).

thanks for the clarification,

chris

"Valentin Kipiatkov" <valentin@intellij.com> wrote in message
news:ap6n75$5cf$1@is.intellij.net...

It has nothing to do with Reformat Code. These settings are only used for
creating new members (e.g. by refactorings etc).
BTW, how did you come to think that "reformat" means to reorder members?
Just curious...

>

--
Valentin Kipiatkov
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"



0
Comment actions Permalink

I guess if anyone cares enough they can submit an SCR for a separate
"Reorder Code" action (i don't, though, so i won't).


Yes, although I remember there were such requests already so you may try to
find them and vote..

--
Valentin Kipiatkov
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"


"Chris Bartley" <spam@feynman.org> wrote in message
news:ap6pgm$7p9$1@is.intellij.net...

I have to say that I was confused about this too. I just assumed that,
since the majority of the Code Style settings are taken into consideration
by Reformat Code, the order of members would be too.

>

Thinking about it some more, though, I agree that the current behavior is
correct and that i'd probably be annoyed more often than not if Reformat
Code magically moved members around ("...hey! where'd foo() go?").

>

I guess if anyone cares enough they can submit an SCR for a separate
"Reorder Code" action (i don't, though, so i won't).

>

thanks for the clarification,

>

chris

>

"Valentin Kipiatkov" <valentin@intellij.com> wrote in message
news:ap6n75$5cf$1@is.intellij.net...

It has nothing to do with Reformat Code. These settings are only used

for

creating new members (e.g. by refactorings etc).
BTW, how did you come to think that "reformat" means to reorder members?
Just curious...

>

--
Valentin Kipiatkov
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"

>
>


0

Please sign in to leave a comment.