I work on some projects with indentation styles that I find really irritating. I'd like to view the code with a certain indentation style, but always save to disk with the prescribed indentation style.
Specifically, I like emacs default style of indentation on multi-line function arguments...
void foo(int a, int b,
string c)
But the project is tab-only, single indent on everything...
void foo(int a, int b,
string c)
Can I see the first case, but share the second?
astyle
) which formats the file to your team's style in yourafter-save-hook