home links tools blog about

AngryPets Blog

home

Thursday, October 06, 2005

Refactoring Support in C# Express is astounding

Honestly, I can't believe how good it is. An enum name has been bugging me as I'm going through some code and 'bingo' the PERFECT name for the enum type (from PersistedResourceType to SavedFileType) pops into my head.

I could zip into the file with the enum and change it there, and the IDE will give me a tiny squiggle to let me change that all throughout the project, or I can right click a reference in the MIDDLE OF NOWHERE, select Refactor | Rename and poof! it's changed everywhere - including the definition.

(I can even change it in the comments, etc.)

Honestly, I keep finding myself rebuilding everytime I do this because I'm SURE it's going to miss something (the ol' find and replace in 2003 always screwed you somehow) - but it has worked flawlessly time and time again.

(My favorite feature: change Gateway.cs to Connection.cs in the Solution Explorer, and you'll be prompted to change the class name as well (if it matches the filename) - and it will be instantly changed all through out the project. Spiffy.)

posted 11:16 PM | Feedback (2)