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:
But then if I put the cursor on the line with the property, the new screwdriver icon shows up:
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:
vs the one with the screwdriver:
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?
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.
As for the intelliSense, you can disable it by going to the tools menu > textEditor > C# > IntelliSense and uncheck the checkboxes.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With