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
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...