在Eclipse中Ctrl + Shift + F和Ctrl + I之间的区别(Difference between Ctrl+Shift+F and Ctrl+I in Eclipse)

编程入门 行业动态 更新时间:2024-10-19 06:19:35
在Eclipse中Ctrl + Shift + F和Ctrl + I之间的区别(Difference between Ctrl+Shift+F and Ctrl+I in Eclipse)

我已经使用Ctrl + Shift + F来修正缩进,但我听说还有另一个捷径: Ctrl + I

根据谷歌的参考资料 , Ctrl + Shift + F是Reformat, Ctrl + I是正确的缩进。

他们之间有什么区别吗? 还是重新格式化和正确缩进之间?

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?

最满意答案

如果您按CTRL + I ,它将只需在代码中格式化标签/空格,并按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.

更多推荐

本文发布于:2023-04-29 11:27:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1336345.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:区别   Ctrl   Eclipse   Difference   Shift

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!