Turning off "created by" stamp when generating files in IntelliJ

Intellij Idea

Intellij Idea Problem Overview


I can't find an option for this. For example, when I create a new Scala class, this text is placed in the file:

/**
 * Created by ben on 6/23/14.
 */

Intellij Idea Solutions


Solution 1 - Intellij Idea

In IntelliJ 13 and above it is in the File and Code Templates area of the settings dialog. In Idea 15+ you can get there by typing ctrl+shift+A on windows or cmd+shift+A on osx and then typing Include Templates in the popup action search dialog. There should be a tab called Includes on which you will find the Java and ActionScript file types, and the text can simply be removed completely if you like.

But, in more recent versions of IntelliJ things have got quite a bit easier. The first time it generates this stuff, put your cursor in the generated comments and hit alt-enter (or the equivalent according to your key-mapping preferences) to bring up the 'fix' options, and select 'edit template'. This will bring you right to the setting that needs to be updated. Simply remove all the text (or replace it with something more palatable to you), hit enter and you're done.

Solution 2 - Intellij Idea

In case, someone wondering about how to add the creation info when it's somehow missed (like in my case),

enter image description here

Solution 3 - Intellij Idea

In Intellij 14 it is in the File and Code Templates area of the settings dialog. There should be a tab called Includes and File Header in it. Remove all text on the right side.

Solution 4 - Intellij Idea

In case you want to remove all comments which have already been created. Hit Ctrl + Shift + R to open the Replace in path dialog. Check the Regex option and replace

/\*\*\n \* Created by .*\n \*/

with nothing.

Solution 5 - Intellij Idea

The keyboard shortcuts provided in the other answers did not work for me.
You need to go to File -> Settings -> Editor -> File and Code Templates
If you want to change the header you need to go to "Includes" tab

The official docs

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionblahaView Question on Stackoverflow
Solution 1 - Intellij IdeaSoftware EngineerView Answer on Stackoverflow
Solution 2 - Intellij IdeaArefeView Answer on Stackoverflow
Solution 3 - Intellij IdeaOleksandrView Answer on Stackoverflow
Solution 4 - Intellij IdeaWilli MentzelView Answer on Stackoverflow
Solution 5 - Intellij IdeaDaniil ShevelevView Answer on Stackoverflow