Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2017 quick actions light bulb icon vs. new screwdriver icon

I've been using Visual Studio 2017 Professional Preview for a number of months now, and I just installed the most-recent update yesterday: 15.7.0. I noticed a new screwdriver icon I've never seen before used for some of the quick actions in place of the familiar light bulb icon. Take the following code for example:

internal sealed class ObjectCollection<T>
{
    private readonly Func<IEnumerable<T>> _loaderOperation;

    internal T Items { get; }

    internal ObjectCollection(Func<IEnumerable<T>> loaderOperation) =>
        _loaderOperation = loaderOperation;
}

If you place the cursor on the line with the constructor, the quick action icon shows up on the side with the light bulb that I've always seen:

enter image description here

But then if I put the cursor on the line with the property, the new screwdriver icon shows up:

enter image description here

If I expand the quick actions, the only difference I see is that the one with the light bulb has a link to a Bing article at the top as well as a "Fix all occurrences in:" thing at the bottom:

enter image description here

vs the one with the screwdriver:

enter image description here

I googled this of course, but this is the only reference to the screwdriver that I've found, a MS dev community issue post which (of course) was never sufficiently resolved. I attempted running VS in safe mode as the MS employee suggested, but that didn't change anything.

So what is the significance of the new screwdriver vs. old light bulb for quick actions?

like image 761
rory.ap Avatar asked Mar 28 '18 16:03

rory.ap


People also ask

What does the lightbulb mean in Vscode?

The yellow light bulb icon indicates there are actions available that you should do to improve your code. The error light bulb. icon indicates there's an action available that fixes an error in your code.

How do I delete a quick action in Visual Studio?

As for the intelliSense, you can disable it by going to the tools menu > textEditor > C# > IntelliSense and uncheck the checkboxes.


1 Answers

I was puzzled by this too, but did find a definition (of sorts) at https://docs.microsoft.com/en-us/visualstudio/ide/quick-actions

In short, it appears that the screwdriver indicates that there are options where you can change the code, whereas the lightbulb indicates that you should.

like image 142
Dave P. Avatar answered Nov 15 '22 08:11

Dave P.