Is there an easy way to have the copyright notice automatically added by android studio?

拈花ヽ惹草 提交于 2019-12-03 07:27:29
Melquiades

In Preferences --> Copyright --> Copyright Profiles, create a profile, and replace the default text with your own custom copyright notice. You can then format it in Formatting tab.

Example:

Then in Copyright tab, select your profile (in my example "test"), and copyright text will be added to new source files you create.

To add/update the copyright to existing project files, select Code -> Update Copyright from the menu bar and select the scope of files that should be updated.

Go to the preference menu and search for copyright using the search-box.

There are a bunch of options to customize it.

You need to first create copyright profile.

  1. Go to Settings > Copyright > Copyright profiles
  2. Go to Settings > Copyright and change the default copyright to the new one you created.

You can find more information here https://www.jetbrains.com/idea/help/copyright-profiles.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!