Alt + insert inconsistent
Answered
If I go to Code|Generate I get a pop-up called Generate with Constructors, Getter etc.
If I go Alt + insert I get a pop-up called New in this Directory with (new) Jave Class, Package etc. The cursor is in the same place. Should I not get the same pop-up as above? It is what I would prefer.
Please sign in to leave a comment.
Alt+Insert is context sensitive. If the focus is in the project view, it will create files/directories/classes, if the focus is inside the editor, it will generate code elements.
If I use Alt + insert in project view or inside the editor I get the project view always. I can click on the class name and only get the project view.
In screen shot below the class Car is highlighted
Make sure the cursor/caret is inside the editor:
Also check that IntelliJ IDEA runs on JetBrains Runtime, see https://intellij-support.jetbrains.com/hc/articles/206544879.
Have just followed the link you supplied. With some of the strange things happening maybe I should just reinstall
Note that you've downloaded some older JDK version (b287, while the latest one is b819).
Now have
IntelliJ IDEA 2017.1.1
Build #IC-171.4073.35, built on April 7, 2017
JRE: 1.8.0_152-release-819-b1 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
Also check the keymap:
I have the same as you above. I am tempted to delete IJ and reinstall unless you have a beter idea
Popup that you see is a different action that is assigned to Ctrl+Alt+Insert:
It looks like Alt key is stuck on your system or at least when you are editing a file in IntelliJ IDEA. You could try to remove the Ctrl+Alt+Insert shortcut from this action in the keymap.
You are brilliant. The left Alt works correctly. I should have tried that before. The right Alt is doing something but I don't know what! This is a brand new laptop.