Resharper:重命名该类中的所有字段

and*_*viD 0 c# resharper

可能重复: resharper-or-coderush-global-rename

大约三年前就提出了重复的问题.所以我想知道是否有任何方法可以重命名类中的所有字段,而不是一次重命名一个,因为我在20个类中有大约500个字段?一次一个地重命名它们需要花费很多时间.

例如:

public class Foo
{
    public static string field_One = "one";
    public static string field_Two = "two";

    /*and so on. About 500 fields */
}
Run Code Online (Sandbox Code Playgroud)

我需要这个:

public class Foo
{
    public static string fieldOne = "one";
    public static string fieldTwo = "two";

    /*and so on. About 500 fields */
}
Run Code Online (Sandbox Code Playgroud)

Swa*_*Fox 6

Resharper 2017.1现在支持批量重命名功能."Alt-Enter"重命名建议有一个菜单弹出窗口,为您提供其他选项(在文件,文件夹等中重命名).