ReSharper 8.0 Web Help

Most of the standard refactorings that ReSharper provides for other languages are available for ASP.NET as well. For more information about them and how they can be applied, see Refactorings.

Rename

One of the nicest and at the same time the most annoying actions when doing it manually is the Rename refactoring. This refactoring provides an easy way to rename symbols and types and it doesn't matter where the refactoring is invoked and what language is used. So you can change the name of a JavaScript function, rename a C# method, a class or even a namespace and be sure that all usages will be updated correspondingly. You can also change the value of a control identifier in markup, so that all references will be updated everywhere, etc.

Web_Development__Refactorings__Rename

Change Signature

A bit more powerful is the Change Signature refactoring. In addition to renaming a symbol this refactoring allows you to add, remove or rearrange parameters of a method. For more information, see Change Signature.

Web_Development__Refactorings__Change_Signature

Move to Resource

ASP.NET enables you to create pages that can change content depending on the explicit choice of language, for example. Content and other data are stored in resource files and can be accessed easily using the appropriate resource expressions. If there are some strings, texts hidden in markup, ReSharper helps you find them and accurately transfer to the appropriate resource files without unnecessary complications.

Web_Development__Refactorings__Move_to_Resource

As usual, you just press Ctrl+Shift+RCtrl+Shift+R to display the list of all available refactorings and choose the desired one.

Safe Delete Resource

As soon as you've noticed that some resource is useless, you can invoke the Safe Delete Resource refactoring and remove it immediately.

Web_Development__Refactorings__Safe_Delete_Resource

For more information, see Localization Assistance: Refactorings.

See Also

Procedures: