java-code-styles
java-code-styles copied to clipboard
Support for .editorconfig file format
Hi,
What do you think about supporting .editorconfig file format? It looks like pretty interesting project and it's independent from the IDE. I suppose, such support would require writing 2 new .editorconfig files basing on config/codestyles/Square.xml and config/codestyles/SquareAndroid.xml.
Reference link: https://editorconfig.org/
By the way: thanks for providing great code styles. I'm using it in all of my java, kotlin and android open-source projects :).
Regards, Piotr
Supporting how? IntelliJ IDEA already recognizes the file if it's present.
I mean, if I would like to use .editorconfig for code formatting and use Square code style for Java or Android project, I need to define this code style in .editorconfig file inside my project. By "supporting" I mean providing .editorconfig file with configuration mirroring Square Java/Android code style defined in the Square.xml and SquareAndroid.xml file.
This should be easy. Feel free to send a PR. It's just spaces indent, 2 spaces, trim trailing space, newline at end of file.
Android Studio supports exporting Code Style as EditorConfig file.