[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
Wed Sep 23 11:11:12 PDT 2015


MyDeveloperDay added a comment.

I tried downloaded the diff and tried this, I met a couple of issues with applying the patch due to line endings in .cs file and csproj (but that could be my fault) - (I was using 2013 to build clang library and clang format)

I also had to up the version because I had previously installed a 3.8.0 version of the extension from the trunk, but I suspect that an uninstall/reinstall would have solved that.

my csproj needed me to re-add the ComponentModel reference (which I think requires the VS 2010 SDK which I'm not sure was required before)

So my line in the CS proj ended up being a little different  (Version Public Key etc..)

<Reference Include="Microsoft.VisualStudio.ComponentModelHost, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />

But it seem to work well in the version I tried (namely VS2013 Premium and  VS2015 Enterprise)

but VS2010 did not work for me, it installed ok, but  initially  it was disabled by default, (not sure why), going to the extension manager and enabling and restarting devenv didn't make it work.

Very nice feature for forcing the change across a file.


http://reviews.llvm.org/D12407





More information about the cfe-commits mailing list