tags:

views:

134

answers:

2

Does anyone know such a tool? Both support of "//" and "/* */" is needed.

It'd be nice if it supports aspx-files also.

+1  A: 

This is probably what you're looking for: Comment Remover

Or you can do this with Replace tool in Visual Studio. Just create proper Regular expression for searching comments

Hun1Ahpu
Do not create a proper regex - it wont work. Create a VS flavored regex instead ;)
Jørn Schou-Rode
Pretty raw utility, doesn't understand masks/folders. And doesn't work :(
Shrike
+1  A: 

See the Semantic Designs C# Formatter. The Formatter can pretty-print your code to make it prettier, or fidelity print your code to preserve the way it looks. It has an option to control whether comments are retained or not.

Ira Baxter
Thanks for the link, looks interesting. Do you have experience in using it?
Shrike
I'm asking because there's no trial version on their site (only money back)
Shrike
I *wrote* it. Actually, you can get an evaluation download (no charge) to play with. Just ask at the site.
Ira Baxter