Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code - Light bulb not appearing

Tags:

My Visual Studio Code used to have auto imports. I would type something that is exported in another file, and when hovering over it, a light bulb would appear that I could click on to make the import appear on the top. The light bulb seems to have disappeared. The intellisense is still there, so it knows what exists and what does not, but I have no way to do quick actions.

I have tried the following things to get it back.

  • Uninstalled VSCode, deleted the settings and the extensions as per this answer. Then reinstalled.
  • Ensured the settings Enables the code action lightbulb in the editor is enabled.
  • Restarted PC

Any ideas what else I could try?

like image 650
Alan Schapira Avatar asked Oct 10 '18 14:10

Alan Schapira


1 Answers

Try hovering on it and right click to find Quick Actions Light Bulb or else you can hover and use shortcut key ctrl+ '.' to enable the lightbulb

like image 95
Shashank Srinivasan Avatar answered Oct 19 '22 09:10

Shashank Srinivasan