A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.microsoft.com/en-us/visualstudio/ide/refactoring-code-generation-quick-actions below:

Quick Actions, light bulbs, and screwdrivers - Visual Studio (Windows)

Quick Actions in Visual Studio let you easily refactor, generate, or otherwise modify your code with a single action. Quick Actions are available for C#, C++, and Visual Basic code files. Some actions are specific to a language, and others apply to all languages.

Quick Actions can be used to:

Understand Quick Action icons

Visual Studio uses several icons to indicate when Quick Actions are available. The icon type indicates whether the Quick Action is a recommendation or required fix, including refactoring:

For any language, third parties can provide custom diagnostics and suggestions, such as part of an SDK. Visual Studio shows light bulbs based on those rules.

Find available actions

You can check your code for available Quick Actions in Visual Studio by scanning for the light bulb , screwdriver , and error light bulb :

You can also manually check for any available Quick Actions:

Apply recommendations to improve code

When Quick Actions are available, you can select the light bulb or screwdriver icon next to the applicable code.

Apply actions to fix errors

If there's an error in your code, and Visual Studio has a recommended fix, you see a red squiggle under the code with the error. The error light bulb icon also displays next to the marked code.

Get AI assistance

If you have Copilot, you can get AI assistance while using the Quick Actions light bulb. From the light bulb menu, choose Fix with Copilot. This opens an inline chat with GitHub Copilot Chat, offering you an available fix.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3