英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论