Import popup not displaying - class

In my IntelliJ, auto import pop-up is not displaying although "show import pop-up" is ticked in the settings so I always have to manually type import java.util..... at the top.
I found some similar questions and tried out their solutions, but none of them worked.
I'm new to Java and started using IntelliJ just a week ago, but if I remember correctly the pop-up was displayed at first.
I didn't update any settings and have no clue how I can make it back.
Also, unlike many screenshots of other people's intelliJ, the color of code in my intelliJ are all white except for some keywords which are orange and string which is green.
Not sure if it has something to do with this issue tho.
Could anyone help me find out what could be a problem?

Please follow below instruction, by that you can fix your issues.
1) Go to setting and in the Settings/Preferences dialog (Ctrl+Alt+S), click Editor | General | Auto Import.
2) Select the Add unambiguous imports on the fly checkbox, and apply the changes.
3) After apply the changes , restart the Intellij idea.

It turned out "Power Save Mode" was on, which caused this problem.
I turned it on now and the issue was solved.

Related

Why flutter auto import does not work in VsCode

Recently the auto import feature for packages and widgets stopped from working, How can I solve it and back it to work? Here an example for import the material flutter package.. in the past when I used to click on fast solve button it was give me an option to import it automatically .Flutter auto import does not work
import material.dart to get the rest of the widget working.
I've had to deal with that for a month or so, and I only managed to solve it a few days ago.
If your problem is anything like mine then it's probably due to one of your settings.
The brute force solution I found is to completely clear your settings.json file and set your preferences again one by one.
Only add those you actually need. I had a lot of them which didn't change much or anything I could notice.
You could also comment out each line one by one to try to find out what exact setting is causing the issue but that's more tedious than doing it all over again.

Eclipse Fix all Problems?

I am in making of an analog Clock in Eclipse. After very hard struggle I am unable to create it. The reason is Error/Problems in Eclipse I want to know how to clear all Error one by one or all in once ?
The main documentation for the latest Eclipse Luna 4.4 is: "Quick Fix "
Left click on the light bulb or invoking Ctrl+1 (Edit > Quick Fix) brings up the proposals for the problem at the cursor position.
Each quick fix shows a preview when selected in the proposal window.
Some quick fixes offer to fix all problems of the same kind in the current file at once.
The information text in the proposal window contains this information for all applicable proposals. To fix all problems of the same kind, press Ctrl+Enter.
Remember: this won't apply to all types of errors, only to certain errors.

Eclipse IDE lost popup menu suggestions

I've seem to have lost the ability in my Eclipse to auto-correct errors in my source code lines.
For example, a line like this:
Date date = new Date();
has red jagged lines beneath the Date() part. Previously I could mouse hover over it see a popup menu of options to fix it. Now I all I ever get is a popup with the text "Cannot resolve to a type".
The only change I can think of that I've made and I don't know if it has anything to do with this problem, is that I started editing my .java files with an outside editor. Then focusing back into Eclipse I get a popup saying the source has changed and do I want to update so I say OK.
Sometimes I will edit inside Eclipse and sometimes i will edit the source outside of Eclipse. I'm not sure if this is a bad practice or not?
Its your wish to edit Java files outside or inside eclipse. But Java editor has many features which are very helpful to developers. I suggest to edit Java files inside eclipse only.If you find other editors are good or you used to it then no problem you can edit Java files out side eclipse also. The problem you mentioned in not related to it. But make sure that changes are applied before building project in eclipse.
Solution
This occurs whenever there are multiple classes are available with the same name in you build path then eclipse don't know which one to import by default. So keep the caret on the error line and press Ctrl+1. Then a eclipse gives options to user to import one among these. See the picture below. Choose the right one then error will disappear.

Eclipse Syntax Coloring Not Showing Correctly

I have a bit of a problem with Eclipse. I haven't had any issues with this until now, so I'm willing to be it's some broken settings somewhere. What happened is I moved form Sublime Text 2 to Eclipse. (I REALLY wanted to stay, but couldn't.) I attempted to import the Sublime Text 2 theme into Eclipse, and it seemed to work. But I can make any changes to the settings for Javascript now.
I go to Preferences -> Javascript -> Syntax Coloring and put in all of the colors I want. It works just fine. I close Eclipse and open it and they're all gone. I go back to the preferences and the colors are still there, they're just not showing up. I change one color and it shows up. Close, reopen, repeat. I don't know what's wrong, but I just want the colors I put in to stay. What could possibly be causing this?
EDIT: Completely forgot. Running the latest version of Eclipse (20120614-1722) on Windows 7. I started with Eclipse for Java Developers and installed the Web Page Editor plugin.

Issue with editor highlighting in Eclipse

I have an issue after switching to running Ubuntu when developing instead of Windows.
When I ran Eclipse in Windows, I could find the software market thing and get good and easy-to-use color themes from there to install. Since I couldn't find anything of this on my Ubuntu version, I decided to edit it all manually.
Here is my issue: I was able to adjust the color of the 'mark occurrences'-function that highlights all the all the places where a code piece occurs, but my program does something else to the place where variables are first declared. I took a simple screen shot that displays the problem:
http://www.freeimagehosting.net/19e90
When I disable 'mark occurrences', the super-bright highlighting on variable declarations do not go away, so it's not part of the same setting. I also can't find where I change the color of this, because it's quite annoying not to be able to read what's written due to the coloring of that highlight.
Do you know how I can disable this extra-marking of declarations? Or at least change the color of it? I can't find anything when googling it, but maybe I'm just searching for the wrong things.
Thanks in advance and sorry for this very long post!
I would recommend installing a new version of Eclipse on Ubuntu.
I'm developing on Kubuntu and have no issues. Make sure you delete all previous settings before reinstalling. Default settings should have them enabled.