New Java class Intellij opens a non-normal dialog

When creating a new java class with new -> Java Class while using the IntelliJ IDE, a random dialog appeared and I can't find how to disable it.

enter image description here

It's a strange dialogue that started to show, a kind of master. Click the help button to get the message There is no help for this dialog

.

How can I disable this window in Intellij IDEA?

+3


source to share


1 answer


I had the same problem too, in the same dialog. In my case it wasn't actually a bug, but IJ was acting correctly (kinda).

TL; DR: The template code for creating a class object was automatically changed after IJ was updated to ask for responses from the encoder when creating a new class file. Changing it in "Presets / Files and Codes" to the default template of the template fixes the problem, since the default template code does not use the variables that are requested when creating class objects (for example: $ {IMPORT_BLOCK}).

Long version ...

Bring up the settings dialog for IJ, and in the search box enter "template" and then select "File and Code Templates". On the right side of the dialog box, you will see the Editor> File and Code Templates area. If you select "Class" from the list of template types, to the right of this list of template types, you will see the template used when creating the class ...

Settings / Editor / File and Code Templates / Class



Now I don't know why, but after some IJ update a few months ago, through their Toolbox app, the default template text / code was different, so it looked like this:

enter image description here

... and this last template code / text caused the second dialog to appear.

To fix the problem, select the "Class" template from the list, then click the "Reset by default" button that appears under the "Files / Includes / Code / Other" tabs (looks like a sheet of paper with a 180-degree arrow on top) so that the text The template reverts to what I'm showing in the first screenshot and then I choose the OK button.

Assuming your default template for class template is intact / corrupted, you won't see the dialog you asked for anymore.

+1


source







All Articles