VisualStudio: Shortcut for when Renaming Variable

后端 未结 12 1107
轻奢々
轻奢々 2021-02-02 05:33

In Visual Studio, when you rename a variable name in its definition, there\'s a little underline in the last letter so if you hover that, you\'ll get the option \"Rename OldVari

12条回答
  •  孤独总比滥情好
    2021-02-02 06:00

    On Visual Studio 2013, the listed shortcuts Ctrl+. , F2, etc... did not work for me.

    I found that installing a Visual C++ Refactoring extension solved my problem.

    I can now use Ctrl+R, which brings up a refactoring pop-up and allows me to select current scope by default, as well as other instances in the same file.

    Here's an example of a variable I renamed in a function. There was another function there with the same variable name, which it suggests to rename...

提交回复
热议问题