format all .cs files in the project using visual studio 2005

  • Thread starter Thread starter puzzlecracker
  • Start date Start date
P

puzzlecracker

Is there way to format all my source file in project, perhaps
follow some generic template (then I would also need one) since i have
a lot of files and I don't want to screw it up manually? Thanks
 
You can edit the template to fit whatever style you want the file to have
when you create a new class file, if that is your question. I do not
remember the folder for VS 2005 off hand, but I used to do it with every new
machine I set up. Primarily setting up regions to hold particular code
constructs (definitions, properties, methods, etc.)

On existing files, get a tool like Resharper, as it can reorganize the file
for you.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
 
You can edit the template to fit whatever style you want the file to have
when you create a new class file, if that is your question. I do not
remember the folder for VS 2005 off hand, but I used to do it with every new
machine I set up. Primarily setting up regions to hold particular code
constructs (definitions, properties, methods, etc.)

On existing files, get a tool like Resharper, as it can reorganize the file
for you.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my bloghttp://feeds.feedburner.com/GregoryBeamer#

or just read it:http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |

Perhaps, I wasn't clear -- all I want is a tool that will go through
all of my files in the project and remove extra space, indent lines/
constucts, etc.

I am fairly sure vs2005 has this functionality.


Thanks
 
Resharper has the capability, to an extent (it is called cleanup). I do not
know of this built in to VS, at least not on a project wide basis. You can
go to edit >> advanced >> format document for individual files. I do not
know if you can adjust the rules, other than setting up the indent for each
line (toolls >> options, then, in tool, Text Editor >> All Languages >>
Tabs).

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
 
Back
Top