Refactoring, Code Generation and Quick Actions in Visual Studio

Visual Studio provides a variety of tools to help you when writing code. Because the functionality of these tools is closely tied to language syntax, each language service in Visual Studio provides its own capabilities.


Refactoring is the process of modifying code in order to make it easier to maintain, understand, and extend, but without changing its behavior. For more information, see the following pages:

Code Generation

Visual Studio can help generate portions of source code for you, letting you focus on the real work. For more information, see the following pages:

Quick Actions

Quick Actions let you easily refactor, generate, or otherwise modify code with a single action. These can be applied using the Light Bulb icon Small Light Bulb Icon, or pressing Ctrl + . when your cursor is on the appropriate line of code.

See Also

Visual Studio IDE
Writing Code in the Code and Text Editor