Structure aware (PSI API) element moving.
This plugin uses non-published IDEA API.
Downloads, Bugs, RFEs:
http://sourceforge.net/projects/tz-ip/
- Copy the jar file (e.g. MoveElement.jar) to the plugins directory ($IDEA_HOME/plugins).
- Restart IDEA.
keystroke plugin's action id
Alt-PageUp MoveElementPlugin.ElementUp
Alt-PageDn MoveElementPlugin.ElementDown
Note that it just moves parameters without touching the method signature.
class A { // Before
{
"".replace(|'a', 'b');
}
}
class A { // After Alt-PageDn
{
"".replace('b', |'a');
}
}
Works for methods, fields, instance/static initializers, classes/interfaces.
class A { // Before
|void f() {
}
void g() {
}
}
class A { // After Alt-PageDn
void g() {
}
|void f() {
}
}
- Specify locations in build-home.properties
- ant clean main.
- Class member (method, field, instance/static initializer, class/interface) moving.
- Call parameters moving, f(|0, 1) -> f(1, |0).
-- TimurZambalayev - Aug 25, 2003
|
|