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

Inconsistent code formatting across IDEs and code editors #4

Open
nonk123 opened this issue Aug 28, 2023 · 2 comments
Open

Inconsistent code formatting across IDEs and code editors #4

nonk123 opened this issue Aug 28, 2023 · 2 comments

Comments

@nonk123
Copy link

nonk123 commented Aug 28, 2023

Every code editor uses its own code formatting preset, but I can't figure out which one is being used here.

Proposal: use clang-format to force everything into the same style. The .clang-format file should be respected by most IDEs out there; and otherwise, it's easy enough to just run the command manually before committing.

@kgsws
Copy link
Owner

kgsws commented Aug 29, 2023

My code formatting has specific quirks which make reading code (at least for me) much faster.
I have only seen a few formatting specifications but none had quirks i use. (that's why i call it quirks)
Any ideas?

@nonk123
Copy link
Author

nonk123 commented Aug 29, 2023

Yeah, the "quirks" are exactly what I haven't been able to figure out. I've cooked up a .clang-format file that does similar things, but the results aren't perfect. You can check them out here.

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