Obviously this is only for Pydev, but I've worked out that you can get the very useful functions "Shift Right" and "Shift Left" (mapped by default to CTRL+ALT+. and CTRL+ALT+,) to become useful by changing their keybindings to "Pydev Editor Scope" from "Pydev View"
For Mac Users who using Eclipse Use Cmd + I(Indent) and Cmd + F(Format). But I had worst experience with Cmd + F which breaks the code in to several lines as follows
String A = MyClass.getA(x, y);
if (A != null) {
A = Long.parseLong(0);
}
Where my original code is as follows
String A = MyClass.get(x, y);
if (A != null) {
A = Long.parseLong(0);
}