NetBeans中的格式化代码

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

明天的希望,让我们忘了今天的痛苦

NetBeans中的格式化代码

相关文章:

你感兴趣的文章:

标签云: