Refactoring Using Quick Actions

You can use Visual Studio's Quick Actions (Light Bulb light bulb) feature to refactor your code. See the Related information for more details.