How to add copyright to Android-Studio?

前端 未结 6 1427
既然无缘
既然无缘 2021-02-01 01:13

The title says everything. If I want to add copyright comment in code files in Android Studio? I, of course, find the Copyright settings in Preference/Copyright, but I can\'t ma

6条回答
  •  死守一世寂寞
    2021-02-01 01:51

    File > Settings > Editor > Copyright > Copyright Profiles > + add -> profile name

    Sample Copyright Template Text

    /**
     * Created by Karthik Kompelli on $today
     * Copyright (c) $today.year . All rights reserved.
     * Last modified $file.lastModified
     */
    

    If you need any extra variables, please visit source Copyright Profiles

提交回复
热议问题