code style question

Is there any way to reshuffle methods position in source file using
IntelliJ? For example I want to put all public methods at the top of the
file, followed by protected and private methods. Or maybe some plugin is
available.

thanks
Roman


3 comments

No, but you can add your votes to feature request # 4733:

http://www.intellij.net/tracker/idea/viewSCR?publicId=4733

chris

<romandolgov@covad.net> wrote in message
news:b2m2k8$3am$1@is.intellij.net...

Is there any way to reshuffle methods position in source file using
IntelliJ? For example I want to put all public methods at the top of the
file, followed by protected and private methods. Or maybe some plugin is
available.

>

thanks
Roman

>
>


0

The easiest way I've found to do this from within IDEA is all manual,
unfortunately. If you compress everything first (ctrlshiftminus), it's a
bit easier to pick out what needs to go where and move them w/cut & paste.
Still very time consuming.

rob.

<romandolgov@covad.net> wrote in message
news:b2m2k8$3am$1@is.intellij.net...

Is there any way to reshuffle methods position in source file using
IntelliJ? For example I want to put all public methods at the top of the
file, followed by protected and private methods. Or maybe some plugin is
available.

>

thanks
Roman

>
>


0

For help doing it manually, you might check out Alain Ravet's
LineUpAndDownMoverPlugin:

http://www.intellij.org/twiki/bin/view/Main/LineUpAndDownMoverPlugin

Here's another feature request that would help with doing it manually:

Drag and Drop reordering of members from the structure view
http://www.intellij.net/tracker/idea/viewSCR?publicId=2541

chris

"Robert Hedin" <robert@ndsapps.com> wrote in message
news:b2mfe5$lue$1@is.intellij.net...

The easiest way I've found to do this from within IDEA is all manual,
unfortunately. If you compress everything first (ctrlshiftminus), it's a
bit easier to pick out what needs to go where and move them w/cut & paste.
Still very time consuming.

>

rob.

>

<romandolgov@covad.net> wrote in message
news:b2m2k8$3am$1@is.intellij.net...

Is there any way to reshuffle methods position in source file using
IntelliJ? For example I want to put all public methods at the top of the
file, followed by protected and private methods. Or maybe some plugin is
available.

>

thanks
Roman

>
>

>
>


0

Please sign in to leave a comment.