Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keyboard shortcut for code refactor (var rename) in Visual Studio

When renaming a variable in Visual Studio (I use 2010), it shows a little mark that when clicked, leads to a drop-down that offers to rename all the dependant references.

What I want to do, is spare getting the mouse and click it in order to show the drop-down.
I was wondering if there is a way to access it via the keyboard.

like image 887
Shimmy Weitzhandler Avatar asked May 01 '11 10:05

Shimmy Weitzhandler


People also ask

Is renaming variable refactoring?

Refactoring variable names involves renaming the variable and then updating usages of the variable that occur elsewhere, such as in the pipeline, other flow services, or document types.


2 Answers

I believe that shortcut is Ctrl + . [dot] :)

like image 102
Damb Avatar answered Sep 17 '22 16:09

Damb


If you wish to assign your own shortcut, go to Tools | Options | Environment | Keyboard, then in the "Show commands containing" field, enter the text View.ShowSmartTag

like image 24
simon Avatar answered Sep 18 '22 16:09

simon