Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for .editorconfig file format #61

Open
pwittchen opened this issue Sep 14, 2018 · 4 comments
Open

Support for .editorconfig file format #61

pwittchen opened this issue Sep 14, 2018 · 4 comments

Comments

@pwittchen
Copy link

pwittchen commented Sep 14, 2018

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

@JakeWharton
Copy link
Collaborator

Supporting how? IntelliJ IDEA already recognizes the file if it's present.

@pwittchen
Copy link
Author

pwittchen commented Sep 14, 2018

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.

@JakeWharton
Copy link
Collaborator

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.

@tomislavhofman
Copy link

Android Studio supports exporting Code Style as EditorConfig file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants