Window -> Preferences -> Java -> Code Style -> Formater
右侧 Active profile : Eclipse [built-in] -> Edit
修改Profile name
Indentation : General settings : Tab policy -> Spaces only
OK
保存
本文介绍如何在 Eclipse 中设置 Java 代码格式,包括选择配置文件、编辑配置文件名称及设置仅使用空格进行缩进的方法。
Window -> Preferences -> Java -> Code Style -> Formater
右侧 Active profile : Eclipse [built-in] -> Edit
修改Profile name
Indentation : General settings : Tab policy -> Spaces only
OK
保存

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