Java格式设置 打开Window-Preferences,找到Java-Code Style-Formatter,点击图片中的New...spa
给配置起一个名字后,修改配置,找到 Indentation,在Tab policy上选择Spaces only,肯定。3d
XML格式设置 打开Window-Preferences,找到XML-XML Files-Editor,选择 Indent using spaces,下面 Indentation size填4。orm