可能重复: resharper-or-coderush-global-rename
大约3年前提出了重复的问题。所以我想知道是否有任何方法可以重命名类中的所有字段,而不是一次重命名它们,因为我在 20 个类中有大约 500 个字段?一次重命名它们将花费大量时间。
例如:
public class Foo
{
public static string field_One = "one";
public static string field_Two = "two";
/*and so on. About 500 fields */
}
我需要这个:
public class Foo
{
public static string fieldOne = "one";
public static string fieldTwo = "two";
/*and so on. About 500 fields */
}