Eclipse中Ctrl + Shift + F和Ctrl + I的区别 [英] Difference between Ctrl+Shift+F and Ctrl+I in Eclipse
问题描述
我已经使用了 Ctrl + Shift + F 来纠正缩进,但我听说还有另一个捷径: Ctrl + 我
I have been used Ctrl+Shift+F to correct indentation but I heard there is another shortcut to do that: Ctrl+I
根据参考在google中找到,
Ctrl + Shift + F 是Reformat
和
Ctrl + 我是正确的缩进。
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?
推荐答案
如果您按 CTRL + kbd>它将在代码中格式化标签/空格,然后按 CTRL + SHIFT + F 格式化格式为tab / whitespaces的所有代码,在没有水平滚动的情况下,以可见的方式划分代码行。
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.
这篇关于Eclipse中Ctrl + Shift + F和Ctrl + I的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!