Difference between Ctrl+Shift+F and Ctrl+I in Eclipse

RENO picture RENO · May 20, 2011 · Viewed 133.1k times · Source

I have been used Ctrl+Shift+F to correct indentation but I heard there is another shortcut to do that: Ctrl+I

According a reference found in google, Ctrl+Shift+F is Reformat and Ctrl+I is Correct indentation.

Is there any difference between them? or between Reformat and Correct indentation?

Answer

Harry Joy picture Harry Joy · May 20, 2011

If you press CTRL + I it will just format tabs/whitespaces in code and pressing CTRL + SHIFT + F format all code that is format tabs/whitespaces and also divide code lines in a way that it is visible without horizontal scroll.