简体   繁体   中英

How to enable quick fix in eclipse

How to enable quick fix while hover over error in eclipse? Currently it looks like this, so I can't import by using this popup在此处输入图像描述

So, I want it to be like this:

在此处输入图像描述

I already restarted few times my eclipse, also I followed instructions how to check: Windows > Preferences > Java > Editor > Content Assist > Advanced But nothing helped... So, the point is how to enable quick fix just by hovering over the error, I don-t want't to use Ctrl+1 or Edit > Quick Fix every time.

I am a beginner so I don't know whether it might help or not

I had the similar problem I wanted to see the quick fix available when the cursor is on the error(red line) (underlined blue words so that I can click and quickly fix or change what is necessary)

The problem was the something I installed from eclipse marketplace("dark theme devStyle") I didn't know how to change the background color and I thought I needed that dark theme devStyle to change color. So I simply unintalled it and the problem solved. Also I deleted the metadata folder in the workspace to make a default setting.

I had a similar issue after installing Dark theme devstyle from eclipse market place.

The solution for me was to power off my PC and turn it back on again and It worked.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM