Page 1 of 1

Plug-in/add-in for code formatting for visual studio 2003?

Posted: 27 Jun 2007, 11:57
by PauloMorfeo
Visual studio 2003 is killing me.
It kept changing

Code: Select all

if () {
}
to

Code: Select all

if ()
{
}
So i changed a config that says "leave open braces on same line as construct".
Now the problem is that the stupid bastard also changes the braces in methods and classes declarations and .. everywhere where it should not...
Also, the godam stupid bastard does not automagically closes curly braces...

(This IDE is the one used in this new company i'm in. Definetly not my choice.)

Does anyone knows a plug-in or add-in or a way to edit it's behaviour so i change it's traumas?

Posted: 27 Jun 2007, 13:36
by Boirunner
Just use the indentation and bracketing style everyone else in your company uses, thus making life easier for all involved?

Also, I'm not sure this is the ideal place to ask this.

Posted: 27 Jun 2007, 13:49
by Tobi
Which language?

Posted: 27 Jun 2007, 16:00
by AF
I'd keep everything as:

class a{
function(){
}
}

Using the same bracket style everywhere. If everyone else is using

function()
{
}

Then your best doing the same.

Other than that, why 2003 and not 2005?

Posted: 28 Jun 2007, 14:03
by PauloMorfeo
Yes, i know, not the best place. Anyway, thanks for the help.

Tobi:
Would which language change it?

AF:
Incredibly, VS 2005 does not works with .NET 1.1...

Posted: 28 Jun 2007, 14:21
by Licho
Err .. it does..

And in VS2005 you can set it in the way you want (I'm using the style you described).

Posted: 28 Jun 2007, 14:29
by Licho
You can also try sharp develop.

Posted: 28 Jun 2007, 15:17
by PauloMorfeo
I mean, it can execute assemblies of 1.1 but, as soon as you open a project into 2005, it makes it use .NET 2.0.

And i read in the microsoft site that it does not, in fact, suport development with 1.1 (only using and debugging assemblies compiled in 1.1).

Posted: 28 Jun 2007, 18:43
by Licho
Ahh yeah, I forgot.. project is reverted. But you can build executables for .net 1.1

Try sharp develop, it should be compatible with 1.1 projects.