Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA: How to import Copyright settings?

The team obviously needs to have the same code style, inspections and copyright settings in the IDE. Although I don't see how copyright settings could be imported into a file and then shared in the team. Is there any way to import copyright settings the similar way we import code style settings?

like image 808
vladimir Avatar asked Oct 03 '13 19:10

vladimir


Video Answer


2 Answers

If you go to Settings > File Templates, you can configure each file to contain a copyright notice in its header. You can also configure such notices for inner classes, etc, in Settings > Live Templates (create a macro that your team is trained to use when creating an inner class). Both file templates and live templates can be exported/imported as settings.

like image 21
Josh Avatar answered Oct 01 '22 15:10

Josh


Take a look at this Intellij FAQ about committing the .idea folder into the repository.

The copyright settings (made, as you noted, via File -> Settings -> Copyright) are Project Level settings and are accordingly stored in the .idea/copyright folder. If you were to check-in that folder (or the whole .idea folder with the exceptions noted in the FAQ), then it would be available to the team.

like image 155
Ashutosh Jindal Avatar answered Oct 01 '22 16:10

Ashutosh Jindal