[PATCH] D12407: [clang-format-vs] Add an option to reformat source code when file is saved to disk

Paul Hoad via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 24 13:32:17 PDT 2015

MyDeveloperDay added a comment.

I went back and retested VS2010, VS2013 and VS2015. so in all cases I

1. start Visual studio
2. open a .h file (with incorrect style) - (via the recent file menu)
3. make a minor edit of whitespace
4. hit save file

In allcases it does NOT reformat the file

Now do

The setting is currently True for reformat on save
Turn it to False press OK
The setting is now False
Turn it to True press ok

now return to the file and press save

The file will now be reformatted.

After this point any subsequent edits and save will reformat the page, perhaps others can try.


More information about the cfe-commits mailing list