Note
If you have downloaded the binaries from from here, and you'd like the add-in to work in Visual Studio 2010 and you're running on Windows Vista/7/2008/2008R2:

You may need to unblock the DLL in Windows to avoid an error that occurs when Visual Studio launches (Error number: 80131515) . To do that, right click on the DLL and select properties. At the bottom of the General tab, you should see an option for Unblock. Click that and you should be on your way.



You'll need to create an XML file with contents similar to the following:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <documents>
    <document extensions="aspx,ascx,ashx">
      <category name="TextEditor">
        <page name="CSharp-Specific">
          <setting property="NewLines_Braces_ControlFlow" value="0" />
          <setting property="NewLines_Keywords_Else" value="0" />
        </page>
      </category>
    </document>
    <document extensions="*">
      <category name="TextEditor">
        <page name="CSharp-Specific">
          <setting property="NewLines_Braces_ControlFlow" value="1" />
          <setting property="NewLines_Keywords_Else" value="1" />
        </page>
      </category>
    </document>
  </documents>
</configuration>

Within the tools menu, you'll find the option for the Settings Swapper (probably at the top of the tools menu). Use that to launch the options dialog for the Settings Swapper.
The only configuration option currently is to point the add-in at the file you created above. It doesn't matter where the file is located -- pick your favorite location.

How do you know what options are available? Well, that's what the advanced button does in the options dialog. It shows you the options as they appear in their
most raw form in Visual Studio 2010. Determine what settings you want to "swap" and add them to the settings file.

Use an "*" as the "default" settings for all files. Otherwise, use a comma delimited list of file extensions. Follow the pattern as shown above.

Last edited Jul 4, 2010 at 12:17 AM by wiredprairie, version 2

Comments

No comments yet.