Every time when I use IDEA and create a Java class with normal "New Java class" menu option, it generates an ugly and useless Javadoc-style header before the class itself:
/** * Created by greycat on 18.03.14. */
I might rant a lot on why is it useless, for example:
@author
or @since
tag)Is there a way to disable this behavior, i.e. just create normal, clean class template, without this header?
So the easiest way to exclude your test is to create a third source folder, call it /ignore, and not mark it as a source folder in IntelliJ. You can then drop any file you don't want to include in your compilation there temporarily, and drag it back to its original folder when you want to continue working on it.
Press Shift+F6 or from the main menu, select Refactor | Rename. next to the highlighted element. You can press Tab to open the context menu and select the additional rename options. If you want to see the Rename dialog with more options, click the More options link or press Shift+F6 .
After the class is generated you can click on the generated text and press alt-enter. This shows you an option to edit the template.
The following is valid for IDEA 13.x.
Files -> Settings, under IDE Settings, select "File and code templates".
In the right panel, you will see several tabs: choose "Includes". There is a "File Header" entry: select this, modify and save.
Note that this header applies to all file types.
Note also that this is a separate setting from copyright notices, which you can set per project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With