Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我使用 ReSharper 4.5 (VS2008) 重命名变量时,重命名是内联(我在编辑器本身中指定新变量名称)或通过提示(我在其中指定新变量名称的弹出窗口)执行的。
我希望有人能告诉我是什么决定了使用哪种方法?
我相信它可以让您根据变量范围内联编辑它。如果是本地的,只需要重构当前方法对变量的引用即可。
否则,它需要重构对其他文件中出现的变量或方法的所有引用。该提示允许您指定是否要查看注释以及是否要打开所有受影响的文件,因为更改可能会影响多个文件。