Project configuration so IDEs use the same code formatting [closed]

1

Problem

It is common in many projects that each developer uses the IDE of their choice, being Eclipse, Netbeans and Intellij the most common.

In this case, they use that shortcut for formatting the entire file and code formatting conflicts often occur, which greatly disrupts the code review of the implementation.

I've heard of plugin ( EditorConfig ) to resolve this issue and keep a unique formatting for the project, but I have not yet seen this being used effectively.

Question

Is there any common practice for solving this problem, which is valid for these major IDEs? If possible, add an example configuration to the response.

    
asked by anonymous 08.06.2017 / 21:49

0 answers