ClangFormat-Xcode icon indicating copy to clipboard operation
ClangFormat-Xcode copied to clipboard

Format on save does not format when building

Open jschmid opened this issue 11 years ago • 1 comments

If you modify a file then build the project (⌘B) without saving, Xcode will save the file by itself. In this case you end up with files that appear modified on your SCM, but that have not been formatted.

I don't know if this should be added as a new option or integrated in the same feature, but it would be nice to be able to do this.

jschmid avatar Feb 17 '14 09:02 jschmid

I consider this a “feature”, I use it to save when I don't want to trigger the formatting which might happen because I'm saving a file which is not handled by clang format as I would like or because I'm editing a file which should not be formatted (e.g. json).

fabiopelosin avatar Mar 21 '14 17:03 fabiopelosin