Is there a way to "introduce a variable"
I often use this feature on VS: selecting a string or value, right click and "introduce as a variable" (don't remember the exact name).
Is there any LINQPad equivalent ?

Extra question: can I select the language of the refactoring items (see screenshot, the right click menu items are in English but the refactoring items are in french)
Regards
Best Answer
-
Good idea - this is now supported in 9.10.4 with the following new refactorings:
- Extract Method
- Introduce Local Variable
- Change Signature
- Generate Overrides
- Extract Interface
Answers
-
this is perfect, thanks a lot.
May I push a little about the locale used ?
-
I just checked and it looks like the "Introduce a (local) constant" does not work in "C# Statement(s)" mode
This

Becomes

-
I'm guessing you have Experimental Roslyn Assemblies option enabled.
Try the latest update and let me know.
-
Yes, it looks like we have a winner, thanks
