请问netbeans中的格式在哪?

来源:百度知道 编辑:UC知道 时间:2024/05/17 02:29:25
eclipse中一个格式选项可以把程序按照标准的形式组织起来,那么这个软件呢?

1) 快捷键是 ctrl+shift+f
2) 设置:在Editor Settings - Java Editor中有一项为"Indentation Engine",点击按钮后设置如下:

Expand Tabs to Spaces : 不选
Add Leading Start in Comment : 选中
Add NewLine Before Brace : 选中
Add Space Before Parenthesis : 选中
Number of Spaces per Tab : 4