How to maintain author name per project in IntelliJ?

JaskeyLam picture JaskeyLam · Aug 10, 2015 · Viewed 8.2k times · Source

I have several projects at my computer and some is for personal and some is the companies, I need different author name for these projects.

Can I define different author name for different projects?

Answer

Bohuslav Burghardt picture Bohuslav Burghardt · Aug 11, 2015

If you want to set per project author name to be used in file headers, etc, you can do so via modification of Code templates.

  1. Go to Settings/Editor/File and Code Templates/Includes/File Header
  2. Switch to Project schema in the upper right corner
  3. Modify the file header template to contain the name you wish to use

enter image description here

The file header is not used for all types of files though. So for instance for JavaScript you need to modify the JavaScript file template separately.