Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the lightbulb icon in Atom?

Tags:

atom-editor

In Atom, on this particular line, a light bulb icon appears. Left-clicking and right-clicking seem to emit the same behavior they would if I clicked in the same part of any other line.

What is it? Why is it there and is there something I can do about it? It looks an awful lot like an icon I've seen in Visual Studio, which usually displayed some helpful tips to help me with my code.

LightBulb icon in Atom

like image 454
mejdev Avatar asked Oct 20 '15 22:10

mejdev


2 Answers

It indicates that there is a TypeScript 'Quick Fix' available at that line. See the following documentation:

https://github.com/TypeStrong/atom-typescript/blob/master/docs/quickfix.md

Press ctrl+enter to show the quick fixes.

like image 86
ColinE Avatar answered Oct 14 '22 13:10

ColinE


It indicates that a "Quick Fix" is available.

You can press Alt+Enter at the location of error to view the options, then select the desired quick fix and hit enter.

Image from atom-typescript github

like image 31
ammar26 Avatar answered Oct 14 '22 12:10

ammar26