Eclipse:
Windows->Preferences->Java->CodeStyles->Formatter,点击AcitivieProfile边上的Edit按钮。在打开的页面中的General settings中,令Tab policy为Spaces only
同时注意下面的 Indentation Size 修改为4
Zendstudio :
Windows->Preferences->PHP->Code Style->Formatter , 点击AcitivieProfile边上的Edit按钮。在打开的页面中的General settings中,令Tab policy为Spaces only
本文介绍如何在Eclipse和ZendStudio中设置代码格式,包括将制表符策略设为仅使用空格及缩进大小设为4的具体步骤。

被折叠的 条评论
为什么被折叠?



