Eclipse Java格式化工具

huangapple go评论67阅读模式
英文:

Eclipse Java formatters

问题

Eclipse(截至目前)自带3种格式化工具:“Java约定”、“Eclipse”和“Eclipse 2.1”。
要获取其他格式化工具(例如Google样式),必须知道要查找什么。

  • 是否有一个包含多种格式化工具的Eclipse套件?
  • 如果没有,是否有一个包含各种格式化工具链接的参考资料?

附注:请注意,我只是在询问是否存在某种功能/资源,而不是寻求任何建议或意见。

英文:

Eclipse (as of now) comes with 3 formatters: "Java Conventions", "Eclipse" and "Eclipse 2.1".
In order to get any other formatter (ex. Google Style), one has to know what to look for.

  • Is there an Eclipse suite which contains a collection of formatters?
  • If not, is there a reference that has a list of links to various
    formatters?

P.S. Please note that I am only asking about existence of a feature/resource and not seeking any recommendations or opinions.

答案1

得分: 1

那些不是不同的格式化程序,它们是内置的Java格式化程序的不同配置文件。如果您正在寻找Google样式,您可以在https://github.com/google/styleguide/blob/gh-pages/eclipse-java-google-style.xml获取该配置文件并导入。

英文:

Those aren't different formatters, they're different profiles for the built-in Java formatter. If you're looking for the Google Style, you can just get the profile with it at https://github.com/google/styleguide/blob/gh-pages/eclipse-java-google-style.xml and import that.

huangapple
  • 本文由 发表于 2020年9月26日 02:00:45
  • 转载请务必保留本文链接:https://go.coder-hub.com/64069210.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定