Switching between different coding styles in Visual Studio

I'm developing two separated C++ projects in Visual Studio (2010 mostly, 2008 sometimes). The problem is the first project uses tabs for code blocks indenting, the second one doesn't (spaces are used).

Is there any way to setup my Visual Studio to switch between different coding styles?

Thanks.

Answers


In Visual Studio Tools Menu there is a Import and Export Settings... item.

You can use this to save and restore Visual Studio settings.

It is a simple XML. I think what you probably want is to only import / export the TextEditor settings

<ApplicationIdentity version="9.0"/>
<ToolsOptions>
    <ToolsOptionsCategory name="TextEditor" RegisteredName="TextEditor">
        <ToolsOptionsSubCategory name="C/C++" RegisteredName="C/C++" PackageName="Text Management Package">
            <PropertyValue name="TabSize">4</PropertyValue>
            <PropertyValue name="AutoListMembers">true</PropertyValue>
            <PropertyValue name="IndentStyle">2</PropertyValue>
            <PropertyValue name="HideAdvancedMembers">true</PropertyValue>

Need Your Help

Obtain data from available form to autocreated one

delphi

I would like to transfer data from the statusbar of Form2 (which is on the list of available forms and used for login purposes), to the statusbar on the MainForm (which is autocreated one).

NHibernate Select data from table based on non-primary key column

c# nhibernate select data primary-key

I'm brand new to NHibernate and have been fiddling with selecting from a single table based on a criteria. I read that using IQuery is unnecessary if I only want to select data based on an ID, and ...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.