IDEA "remembers" code that I've typed from months ago (it seems)
I teach Java programming at a local Jr. college and have been using IntelliJ IDEA for 10 years or so. I've seen lots of very useful changes over that time, including some that have thrown me for a loop. I last taught a course in 2022 and am teaching one again this semester.
As part of the preparation process for this semester, I upgraded to 2024.1.6 Ultimate and have noticed something quite odd - IntelliJ is providing prompts for code based on things that I haven't typed in a year or more. These aren't live template sorts of things, these appear to be, quite literally, what I've typed before. I tend to use common examples during my lectures but I absolutely don't want the IDE to prompt me with things I've previously typed in my examples. I want my students to see the act of writing my own code and it's very unhelpful if the tool constantly provides “answers” to things that I've already done.
I've reverted to the Community Edition because it doesn't exhibit this behavior which is what I want my students to see. I understand and appreciate the value of this behavior in a professional environment, but it's certainly not appropriate, IMO, in an educational setting.
Is this a feature that I can turn off? Is it part of the AI push that everyone is jumping on? Again, AI programming in a college course _may_ be appropriate for certain classes, but not for the class that I am teaching. Should I blow away the .config folder to ‘reset’ things?
Thanks.
Sean
Please sign in to leave a comment.
Hello Sean,
To disable code suggestions based on your previous inputs, you can turn off the “Machine Learning Code Completion” feature. Go to
Settings|Editor|General|Code Completionand uncheck theMachine Learning-Assisted Completionoption.