VS17 - Key combination is bound to command (ReSharper_IntroVariable) which is not currently available.

Answered

Hello, I'm using Visual Studio 2017 community and ReSharper Ultimate 2017.1.3 with a student license on a 64-bit Windows 10 machine.

The ReSharper's keyboard scheme is selected as "Visual Studio"

Other major keys work like Alt + Enter when I work with C# / .Net projects.

However, as you see the above pictures, the Introduce Variable refactoring feature does not work, even though it is configured as a global command.

 

VS17 shows the above message; 

The key combination (CTrl+R, V) is bound to command (ReSharper_IntroVariable) which is not currently available

 

How can I solve this? I really want to use the Introduce Variable feature!

 

-Best Regards

 

2 comments
Comment actions Permalink

Hello!

 

Thank you for contacting us.

'Introduce Variable' refactoring allows you to create a new local variable which is impossible in class context.

For this purpose please use 'Introduce Field' refactoring - https://www.jetbrains.com/help/resharper/Refactorings__Introduce_Field.html

Thank you.

1
Comment actions Permalink

Thanks, Angelina! I should have read carefully that this is used to create a new local variable.

This demo video also creates a local variable. I appreciate that you have solved by problems.

 

-Best Regards

 

0

Please sign in to leave a comment.