Skip to content

Commit b1b275c

Browse files
Merge pull request #10469 from MicrosoftDocs/main638663833935244127sync_temp
For protected branch, push strategy should use PR and merge to target branch method to work around git push error
2 parents 755b452 + ae9bf99 commit b1b275c

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

docs/ide/quick-actions.md

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Quick Actions, light bulbs, and screwdrivers
33
description: Use a single Quick Action in Visual Studio to refactor, generate, or modify your C#, C++, or Visual Basic code files to apply updates and fixes or generate code.
4-
ms.date: 08/14/2024
4+
ms.date: 11/01/2024
55
ms.topic: concept-article
66
author: Mikejo5000
77
ms.author: mikejo
@@ -37,6 +37,22 @@ Visual Studio uses several icons to indicate when Quick Actions are available. T
3737

3838
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.
3939

40+
## Find available actions
41+
42+
You can check your code for available Quick Actions in Visual Studio by scanning for the light bulb ![light bulb icon](media/light-bulb-icon.png), screwdriver ![screwdriver icon](media/screwdriver-icon.png), and error light bulb ![error light bulb icon](media/error-light-bulb-icon.png):
43+
44+
- Move your mouse over your code and notice any Quick Action icons:
45+
46+
:::image type="content" source="../ide/media/vs2022-lightbulb-hover.png" border="false" alt-text="Screenshot that shows the basic Quick Action recommendation and light bulb icon in Visual Studio.":::
47+
48+
- Move the insertion cursor (|) into a line of code, and check for Quick Action icons in the left margin of the code editor.
49+
50+
You can also manually check for any available Quick Actions:
51+
52+
- Right-click a line of code and choose **Quick Actions and Refactorings** for a list of available Quick Actions and refactoring options.
53+
54+
- Select Ctrl + period (.) anywhere on a line.
55+
4056
## Apply recommendations to improve code
4157

4258
When Quick Actions are available, you can select the light bulb ![light bulb icon](media/light-bulb-icon.png) or screwdriver ![screwdriver icon](media/screwdriver-icon.png) icon next to the applicable code.
@@ -60,17 +76,6 @@ If there's an error in your code, and Visual Studio has a recommended fix, you s
6076
> [!TIP]
6177
> You can turn off some of the code fix Quick Actions. For more informatio, see [Disable source code analysis for .NET](../code-quality/disable-code-analysis.md).
6278
63-
## Find available actions
64-
65-
You can check your code for available Quick Actions in Visual Studio by scanning for the light bulb ![light bulb icon](media/light-bulb-icon.png), screwdriver ![screwdriver icon](media/screwdriver-icon.png), and error light bulb ![error light bulb icon](media/error-light-bulb-icon.png):
66-
67-
- Move your mouse over your code and notice any Quick Action icons:
68-
69-
:::image type="content" source="../ide/media/vs2022-lightbulb-hover.png" border="false" alt-text="Screenshot that shows the basic Quick Action recommendation and light bulb icon in Visual Studio.":::
70-
71-
- Move the insertion cursor (|) into a line of code, and check for Quick Action icons in the left margin of the code editor.
72-
73-
- Select Ctrl + period (.) anywhere on a line for a list of available Quick Actions and refactoring options.
7479

7580
## Related content
7681

0 commit comments

Comments
 (0)