Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

resharper extract interface grayed out

how to create an interface off of a class using resharper? the option is grayed out.

VS does have an option for refactoring the interface out of the class but resharper takes it out by default.

enter image description here

like image 843
user3311522 Avatar asked May 24 '14 22:05

user3311522


2 Answers

The menu is context-sensitive, you have to right-click precisely the class name. From your example, I can see that "Go to Implementation" is greyed out so you clearly clicked the background.

Once you right-click the class name, the correct menu options will be enabled.

enter image description here

like image 74
Pierre-Luc Pineault Avatar answered Nov 11 '22 22:11

Pierre-Luc Pineault


Don't mark the classname by double clicking it, but just place the cursor inside it and press the right mouse button.

like image 7
user787245 Avatar answered Nov 11 '22 22:11

user787245