3

So I know how to change the default file header in Android Studio (Android Studio: how to remove/update the "Created by" comment added to all new classes?), and can apply the default to a single class (shown in the picture there). I was wondering if there were an "apply to all" sort of button, where I would be able to change the headers of all the files in my project. I've got a lot of files, and don't really want to go through all of them and change the header.

Thanks!

Community
  • 1
  • 1
Jeeter
  • 5,887
  • 6
  • 44
  • 67

1 Answers1

6

Found it out, I think! So what you do is you go to the more options by pressing right arrow and click "Run Inspection on..." enter image description here

Then, click "whole project" and run the inspection. You'll get a table that looks like this:

enter image description here

Turns out you can just spam the link circled in red, and it'll replace all the headers! Not sure if this is the way to do it, but this worked for me.

Jeeter
  • 5,887
  • 6
  • 44
  • 67