Maintain consistent coding styles between different editors and IDEs

Posted by itungnt on Saturday, June 18, 2016

Nowadays people are using different IDE and they are using different styles as well as format for source files. When we push to our source control it may cause conflict.

There is one way to avoid that is to use EditorConfig. When you put this file to your source code, all the supported IDE or through plugin, will format the source code files with the same style you predefined in the .editorconfig file.

Below is example of .editorconfig file.


comments powered by Disqus