public void Method() { // 2. 跨文件重命名 // 将光标放在类型名或者方法名上, 执行Rename // 其他文件中也更新了新名字 RenameInAnotherFile.StaticMethod(); }
public void Method() { // 2. Rename across files // Place text caret on type name or method name // Invoke rename refactoring // Symbols in other file are updated (navigate to check) RenameInAnotherFile.StaticMethod(); }
public void Method2() { RenameInAnotherFile.StaticMethod(); }