How to create an Intellij and Eclipse compatible code style and code formatting configuration (for java code)?

前端 未结 3 1727
悲&欢浪女
悲&欢浪女 2020-12-09 02:21

Few weeks ago I tried Intellij and I found it really awesome. Now, at my project there are two programmers (including me) using Intellij and few other programmers who are go

3条回答
  •  爱一瞬间的悲伤
    2020-12-09 02:47

    I would recommend someone spends the time to configure their IntelliJ's code style to be the same as Eclipse. This will take a little time and effort but once it is done, you can export it just like in eclipse so that any other IDEA users can import it.

    You could also search online to see if anyone has already done this and you can simply download the code style config and use it.

    The only alternative I can think of would be to find a standardized code style template that is available for both eclipse and IntelliJ, like the Recommended Sun Java Code Style.

提交回复
热议问题