Dylan Beattie
Dylan Beattie

Reputation: 54150

Can I use different brace styles in different projects/solutions in VS2008?

I'm working with a couple of open-source projects that use different C# brace styles, and I'd like to configure VS text formatting to use different styles for each project so I can use Ctrl-K-D to reformat source code.

Is there any way I can configure Visual Studio 2008 to load a particular set of text formatting preferences along with a particular solution file?

Upvotes: 2

Views: 77

Answers (1)

Jagmag
Jagmag

Reputation: 10356

As far as i know, there is no way to do this natively in VS 2008 (or even 2010 for that matter)

There is a resetsettings command line switch in Visual Studio which you can use to indicate what settings it should start up with. This works in 2005 and i presume it would with 2008 as well though i have personally not tried it with 2008. If you just make a bat file using this method as indicated here, that might be one workaround to your problem.

Also, there is an option to do a macro based solutions that might help you that i remember looking at in the past.You can probably check out this site which indicates how to do something very similar to what you are looking for

Upvotes: 1

Related Questions