![]() ![]() In the editor, set the caret at the name of an entity. Select an entity in one of the following ways: ![]() ReSharper renames local variables without showing the dialog: Event Delegate Invoke the refactoring with a command If the method is a part of inheritance/implementation hierarchy, or has overloads with a parameter of the same name and type, you will be able to rename parameters in the related methods, too. If the property has a backing field with a matching name, you will be able to rename the field as well. If the field is used in a property with a matching name, you will be able to choose whether to rename the property. If the method has overloads, you will be able to choose whether to rename the overloads. ![]() If the method is a part of inheritance/implementation hierarchy, the related methods are renamed as well. Optionally, it can also update all mentions of the file in comments and string literals. If the file contains a type with the same name, ReSharper can also rename that type. You can rename any file and ReSharper will make sure that all relevant project items will be updated accordingly. If the renamed type is a part of a hierarchy of types with similar names, for example class Foo : IFoo, you will be able to choose whether to rename the related types. If the renamed type is located in file with the same name, ReSharper renames the containing file, too. For example, you can rename namespace A.B.C to A.D. You can also change its nesting level of the namespace. Here is the list of entities that you can rename with this refactoring: Namespace Use the refactoring for different C# entities All references to and usages of the symbol will be updated automatically. This refactoring allows you to change name of any symbol or project in your solution. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |