Autocomplete not working for JavaFX project
已回答
I'm helping my daughter do a high school coding project. We've got IntelliJ set up and for plain Java Projects the autocomplete/intellisense magic works. She just created her first JavaFX project and the autocomplete stopped working in that project.
- I've checked the Setting → Editor → General → Auto Complete and those global settings are still the default
- Following a suggestion from StackOverflow - I doubled checked that we have a source folder set and we do.
Ctrl + Space - still works for manually invoking the completition function
请先登录再写评论。
Can you please attach a screenshot? Does the tutorial help here?
We followed that tutorial.
Screenshots yes of course. What am I taking a screenshot of? It's rather hard to screenshot the absence of the autocomplete function.
Please take a screenshot to show what autocomplete does not work.
Please also try File | Invalidate Caches / Restart.
We did the cache invalidation - no dice. Here is the screenshot you asked for:
Curiously I also noticed the entire quick fix system isn't working either. She had written a function call and I would have expected the quick fix to offer to create the function.
It seems like the java files are not under the source root. Please check the project structure to make sure the source files are under the source folder.
I will check that tonight. Caveat, if they're not under the source folder, that would be strange. She is simply working on a project created via the New Project… dialog, having selected JavaFX.
Ignore the syntax errors, she fixed those a few minutes later. From what I can tell her code is inside the correct folder. I even double checked the project structure dialog, to make sure it wasn’t mis-configured.
Sorry, I missed the battery icon in your screenshot previously. Please disable the power save mode.
You my friend are a genius. It took, me a week to get her to focus on computing and open IntelliJ again. One genius point awarded.