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

Add .editorconfig #66

Closed
kuon opened this issue Mar 24, 2024 · 3 comments
Closed

Add .editorconfig #66

kuon opened this issue Mar 24, 2024 · 3 comments

Comments

@kuon
Copy link
Contributor

kuon commented Mar 24, 2024

I started opening files in the project, and my editor is messing with the code automatically, especially it is triming trailing whitespace and ensuring newline at end of file, also it replaces tabs with spaces.

I suggest you add an .editorconfig file to the project to help with this.

I usually use trim_trailing_whitespace and insert_final_newline to both true, but you might set them to your liking, having the .editorconfig ensure editors of contributing developers will follow your style.

https://editorconfig.org/#supported-properties

@Durss
Copy link
Owner

Durss commented Mar 24, 2024

Didn't know about this thank you 🙏
Added on main branch

@Durss Durss closed this as completed Mar 24, 2024
@kuon
Copy link
Contributor Author

kuon commented Mar 24, 2024

I saw the file you added, good. Just as a side note, ensure you have an .editorconfig plugin enabled in your editor, to be sure your own editor is following it.

Cheers!

@Durss
Copy link
Owner

Durss commented Mar 24, 2024

Yep I added it to generate the file :D

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

2 participants