In eclipse you can click Ctrl+I at any line, and it'll automatically indent the line or group of lines according to the indentation scheme you chose in the settings.
我真的很怀念 Netbeans 中的这个功能。有同等功能吗?
I'm aware of Alt+Shift+F but it's not good enough. I want to indent a group of lines, and not all the file.
Shortcut:
- Windows: Alt+Shift+F
- Mac OS X: Ctrl+Shift+F (note: it's Ctrl and not ⌘)
使用上述快捷方式时,NetBeans 会缩进您的选择。如果未选择任何内容,则会缩进整个文件。
您甚至可以一次格式化多个文件/文件夹!在里面Projects
窗口/侧边栏,如果您选择一个或多个文件夹或文件并使用快捷方式,NetBeans 会询问“递归格式化选定的文件和文件夹?“。按“确定”将递归格式化所有选定的文件/文件夹。
以上快捷方式适用于版本 7 到 12 的 NetBeans。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)