Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij Light bulb

Tags:

Is there a way to get light bulb to stay in the margins like in netbeans? Or at least a way to click on the highlighted code and get a fix menu instead of getting an information popup?

I don't like having to press alt enter each time to fix something so I want to be able to do this without pressing alt+enter and with clicking instead.

like image 444
Gary In Avatar asked Apr 03 '15 22:04

Gary In


People also ask

What does the light bulb mean in Pycharm?

As soon as the IDE finds a way to alter your code, it displays a yellow bulb icon. in the editor next to the current line. By clicking this icon, you can view intention actions available in the current context. Intention actions cover a wide range of situations from warnings to optimization suggestions.

How do I change from IntelliJ to white?

Change the UI themeIn the Settings/Preferences dialog ( Ctrl+Alt+S ), select Appearance & Behavior | Appearance. Select the UI theme from the Theme list: IntelliJ Light: Traditional light theme for IntelliJ-based IDEs.

What is Zen mode in IntelliJ?

Zen mode helps you to hide everything except the editor. You can access Zen mode from the IntelliJ IDEA menu with View > Appearance > Enter Zen Mode. Alternatively you can use Find Actions ⌘⇧A (macOS), or Ctrl+Shift+A (Windows/Linux) and type in zen mode to enter or exit Zen Mode.


1 Answers

There are 2 ways that I know of.

  1. You can click on the red line, and click the red bulb that will appear near the start of the line.

redbulb

  1. You can use the keyboard shortcut Alt + Enter(⌥⏎) to bring it up.

    • Click the red underlined area and press Alt + Enter (⌥⏎)

enter image description here

Hope this helps.

like image 100
tharindu_DG Avatar answered Sep 29 '22 14:09

tharindu_DG