Generate parameter
This refactoring applies to:
C#
Visual Basic
What: Automatically generates a method parameter.
When: You reference a variable in a method that doesn't exist in the current context and receive an error; you can generate a parameter as a code fix.
Why: You can quickly modify a method signature without losing context.
How-to
Place your cursor in the variable name and press Ctrl+. to trigger the Quick Actions and Refactorings menu.
Select Generate parameter.
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for