问题
Fresh Install of Android Studio, intellij is not showing me errors in the editor.
No lightbulb, no red underlined text. To know where I made errors (even the simplest error like a missing ';' ) I have to compile my Android project .
I'm on x64 all the way & Java JDK 1.7_40.
Thanks !
回答1:
I found the answer !
Just on top of the right scrollbar there is a small eye icon, wich is called "Code Analysis", it should be green if the file opened in the code editor is without errors.
So what was the problem ? It seems that code analysis is battery hungry and it is desactivated by default when your laptop is on Power Saving Mode.
Uncheck Power Saving Mode, and Voilà !
回答2:
answer: Right click anywhere on code editor and select "show context action" option. Done.
回答3:
MacOS : Option + Enter
Windows : Alt + Enter
Preferences/Settings > search Intention Bulb > check show intention bulb under General > Appearance
回答4:
I had the same problem even though my 'show intention bulb' was checked in settings. The problem went away when I restarted android studio.
回答5:
right click on empty space in any file (where we write code) -> Analyze -> Configure current file analisys -> Configure inspections -> in there check "Android" and "Java"
or just press ctrl + shift + alt + H -> Configure inspections -> in there check "Android" and "Java"
来源:https://stackoverflow.com/questions/19384362/android-studio-is-not-showing-quick-fix-lightbulb