Android Studio: how to remove/update the “Created by” comment added to all new classes?

后端 未结 9 1371
余生分开走
余生分开走 2020-12-07 07:53

By default Android Studio automatically adds a header comment to all new classes, e.g.

/**
 * Created by Dan on 11/20/13.
 */

Where is the

9条回答
  •  [愿得一人]
    2020-12-07 08:22

    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.


    The regex was originally posted by nerdinand as comment to the following answer. Although I asked him, he didn't create an answer for several months. That is why I did now, so people can find this more easily.

提交回复
热议问题