Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 791
RENO Avatar asked May 20 '11 05:05

RENO


People also ask

How do I rearrange lines in Eclipse?

Moving lines: You can move lines up and down by pressing ALT+UP or ALT+DOWN. No need to select, cut, or paste! Duplicating lines by pressing CTRL+ALT+UP.


1 Answers

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.

like image 184
Harry Joy Avatar answered Sep 28 '22 06:09

Harry Joy