简体   繁体   English

使用Gradle将Formatter设置添加到Eclipse和IntelliJ项目

[英]Add Formatter settings to Eclipse and IntelliJ projects with Gradle

I'd like to automatically include the formatter settings I ship in my repo (in fact the one from Google) in the project settings for both Eclipse and IntelliJ using gradle. 我想在Eclipse和IntelliJ的项目设置中使用gradle自动包含我在repo中发布的格式化程序设置(实际上是来自Google的格式化程序设置)。

Maybe I can tinker with the generated XML settings, but I'm not sure how, nor do I know how either IDE stores these settings. 也许我可以修改生成的XML设置,但我不知道如何,也不知道IDE如何存储这些设置。

我建议使用http://editorconfig.org/ ,它涵盖了最常见的用例,它可以在大多数编辑器之间移植。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM