Inplace refactorings allow you to update all references in your solution with one click after you've changed some of your code manually in the editor. There are three inplace refactorings available:
- Change signature
- Move static member
If you rename a symbol manually in the editor, use the Apply rename refactoring quick-fix to update all references to this symbol according to the new name.
If you modify method's or delegate's signature by adding or removing parameters or by changing its return type, you can invoke the Apply change signature refactoring quick-fix to update all references accordingly.
For instance, if you have removed the e parameter from
the WebBrowserDocumentTitleChanged method,
ReShaper includes the appropriate refactoring in the drop-down list of quick-fixes.
After applying the quick-fix, the Change Signature dialog is displayed. It displays the changes that are to be made. Click Next to apply the refactoring.
If you have just added the e parameter to
the WebBrowserDocumentTitleChanged method, invoke
the Apply change signature refactoring quick-fix.
The Change Signature dialog is displayed, that demonstrates the changes
are to be made. Click Next to apply the refactoring.
Move static member
If you manually cut and then paste a static member from one class to another, ReSharper suggests
to apply the Move static member refactoring. Click the suggestion or
Alt+Enter to apply it.