Search code examples
giteclipseintellij-idea

How to keep the code style and reformat consistent between idea and STS?


i'm use idea for development,others use STS and eclipse. when i pull their code and reformat, git will report a lot of differences, but i can't see the difference at all. Is there any way to keep the code style of diea consistent with eclipse? I tried to import the formatter of eclipse, but the result did not change. My leader warned me not to use idea unless this problem is solved, please helo me, i really don't want to use STS for development!


Solution

  • You can try and use the Eclipse Code Formatter (GitHub project), since the official Eclipse settings import feature might not be complete or without bugs.

    Check if the formatting is better supporting with the plugin.