可能重复: 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)
| 归档时间: |
|
| 查看次数: |
3598 次 |
| 最近记录: |