Wednesday, November 08, 2006

Resource Refactoring Tool Powertoy for VS2005 (Refactor Strings into a String Resource)

Microsoft Downloads - Resource Refactoring Tool

"The Resource Refactoring Tool provides developers an easy way to extract hard coded strings from the code to resource files.

The Resource Refactoring Tool "Alpha Release" provides:
Lists existing resources by their similarity level to the text being replaced.
Automatically replaces hard coded string with a reference to resource entry
Support for with both C# and VB.NET projects.

Instructions

1. Run ResourceRefactorSetup.msi
2. Launch Visual Studio 2005
3. Open either a VB.NET or C# project
4. Right-click on a hard coded string in a a code window and choose Refactor - Extract to resource
5. Choose the resource file you want to use. Next, choose either an existing resource or create a new one.
6. Press OK to commit changes

The string will automatically be replaced with the reference to resource you have chosen"

Very nice. Now if they would release the source (or just integrate a spell checker for me) I'd be in heaven!  ;)

[It looks like there already are resource file spell checkers... I'll have to check those out...]

4 comments:

Anonymous said...

I used the refactoring tool this evening. It saved me a lot of time. Thanks for the recommendation.

Anonymous said...

Verry nice indeed.

Anonymous said...

We have actually released the source code with the beta version. You can find the beta version and source at http://www.codeplex.com/ResourceRefactoring.

Thanks!

Greg said...

You rock!

Thank you.

Sigh... Now I have to put up or shut up and doing a spell checker thing... ;)