Eclipse STS 不会格式化 pom.xml

问题描述 投票:0回答:0

我在新安装的 Spring STS 4.8.0(最新)中,我无法自动格式化 pom 文件。

  • Eclipse 菜单 Source/Format 对任何 pom.xml 都禁用
  • 编辑器上下文菜单源/格式对任何 pom.xml 都禁用
  • Ctrl-Shift-F 在 pom.xml 中什么都不做(键映射在那里,我检查过)
  • 在 Package Explorer 中右键单击菜单 Source/Format 处于活动状态并且也可以正常工作
  • Eclipse 错误日志中没有错误
  • 一切都成功更新到最新
  • 当我打开任何其他 XML 文件时,一切正常。

所以 POM 编辑有问题,我已经习惯了键盘快捷键……知道我应该检查什么才能让它工作吗?我见过一个similar older question但它没有给出任何解决方案。

eclipse maven pom.xml spring-tool-suite autoformatting
© www.soinside.com 2019 - 2024. All rights reserved.