I know you can do it file by file.
Is there any way to do this in one step for all files in a project?
If you do mean 'using' Power Commands contains this functionality + a boat load more.
http://code.msdn.microsoft.com/PowerCommands