Make .CS & .VB files one line per statement

Is there a utlity that anyone knows of that can process VB.NET and C# .NET files so that all statements are 1 per line and there are no annoying "+" signs that continue the current statement on to the next?

I am writing a substitution program and need to substitute all ocurances of a connection string, which many of the times runs over to the next 2 or 3 lines.

thanks,
David

[395 byte] By [DavidKepple] at [2007-12-25]
# 1

David, this isn't really the right forum to get a good answer for that question. I'm not really sure which forum is the right forum, so I'm going to start with VB General.

HTH

Dan

DanMoseley-MSFT at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 2

This website lists a bunch of different indent style programs that will do what you are trying to accomplish.

http://www.surfpack.com/software/indent/

JaredParsonsMSFT at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 3

I know this isn't exactly the answer you are looking for, but why are you hard coding the connection string in your application? It is often preferable to include this information in the .config file which allows you to change it based on deployment and not need to recompile the application. If you are concerned with security, the connection string can be encrypted in the config file. (Which is much better than trying to keep it "secure" by just compiling it since .Net applications are easily de-compiled.)

Jim Wooley
http://devauthority.com/blogs/jwooley

jwooley at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic Language...