3 ms·
In my ideal environment, each time I would load a source file in my editor, it would be reformatted according to my own preferred formatting rules. And upon wr
by informatimago 8y ago
In my ideal environment, each time I would load a source file in my editor, it would be reformatted according to my own preferred formatting rules. And upon writing, it would be saved in some common "standard" format good for git diffs. This way each programmer can be presented the code in the best way he can read it, and the tools can work on a standard representation that they can best deal with.
I will note that some projects such as FreeRDP, already have an autoformat script that does the "saving" part (unfortunately, not entirely automatically, since the precommit-hook is not set to run it).