代码编辑快捷方式

时间:2012-04-23 08:31:36

标签: vb.net

我注意到当我将光标移到我的代码中的单词上时,vb突出显示了我代码中的所有相同单词。是否有同时编辑所有单词的快捷方式?

1 个答案:

答案 0 :(得分:3)

您需要一个重构工具 Visual Studio附带了一个非常简单的重构工具,可以从Refactor工具栏或Refactor上下文菜单中获得 您正在寻找的功能称为重命名,其快捷方式为CTR+R, CTRL+R
(表示按两次键CTRL和R)

其他替代方案(非免费)为ReSharperCodeRush

重构过程的一个很好的解释可以在Martin Fowler's book, Refactoring

中找到

Refactoring is the process of changing a software system in such a way that it does not alter the external behavior of the code yet improves its internal structure. It is a disciplined way to clean up code that minimizes the chances of introducing bugs. In essence, when you refactor you are improving the design of the code after it has been written.