我已经使用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.
更多推荐
发布评论