doom_ace icon indicating copy to clipboard operation
doom_ace copied to clipboard

Inconsistent code formatting across IDEs and code editors

Open nonk123 opened this issue 1 year ago • 2 comments

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.

nonk123 avatar Aug 28 '23 20:08 nonk123

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?

kgsws avatar Aug 29 '23 18:08 kgsws

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.

nonk123 avatar Aug 29 '23 19:08 nonk123