I'm new to IntelliJ IDEA, so I hope you'll forgive what I'm sure is a silly question.
I created a new class, hit "alt+enter", and wrote in my own default class beginning. The new template I saved was just a few comment lines with my name and such. Now, though, when I try to create a new class, I get the following error message:
Unable to parse template “Class"
Error message: This template did not produce a Java class or an interface
PACKAGE_NAME;"some words"public class
Where "some words" was the body of the new default class template I saved, and Classname is the name of the class I am now trying to create. If only I could create a class, I could select the opening text and press alt + enter again, and put it back to the way it was, but since it won't let me create a class, I don't know how to reset the template.
What I have done:
-Went to file --> preferences --> editor --> File and Code Templates, and I can see the original class template (I think?). But it's unchanged by the messed up version I wrote and saved.
-Completely uninstalled and reinstalled.
-Invalidated Caches / Restart
I can't create any classes now and I can't seem to fix the error. Does anyone know how to fix this?
Thanks so much.