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

后端 未结 4 2019
北荒
北荒 2020-12-12 14:28

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

4条回答
  •  情书的邮戳
    2020-12-12 14:56

    Ctrl+Shift+F formats the selected line(s) or the whole source code if you haven't selected any line(s) as per the formatter specified in your Eclipse, while Ctrl+I gives proper indent to the selected line(s) or the current line if you haven't selected any line(s).

提交回复
热议问题