![]() ![]() anywhere on a line to see a list of available Quick Actions and refactorings. In the left margin of the editor when you move the caret (cursor) into the applicable line of code When you hover the mouse at the location of an error If a fix is available, light bulbs appear: The error light bulb icon indicates there's an action available that fixes an error in your code. The yellow light bulb icon indicates there are actions available that you should do to improve your code. The screwdriver icon indicates just that there are actions available to change the code, but you shouldn't necessarily use them. The icon that appears when a Quick Action is available gives an indication of the type of fix or refactoring that's available. You'll see an error light bulb if there's a red squiggle indicating an error and Visual Studio has a fix available for that error.įor any language, third parties can provide custom diagnostics and suggestions, for example as part of an SDK, and Visual Studio light bulbs appear based on those rules. when your cursor is on a line of code for which an action is available. Quick Actions can be applied by using the light bulb or screwdriver icons, or by pressing Ctrl+. For Visual Studio for Mac, see Refactoring (Visual Studio for Mac). ![]() This topic applies to Visual Studio on Windows. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |