Coding⏱️ 2 min read📅 2026-06-03

How to Fix: Android Studio: how to remove/update the "Created by" comment added to all new classes?

Remove Android Studio created by comment

Quick Answer: Go to Settings > Editor > General > Appearance and uncheck the 'Add comments when creating a new class' option.

To remove or customize the "Created by" comment added to all new classes in Android Studio, follow these steps:

💡 Why You Are Getting This Error

  • You can customize or remove the comment by editing the project's properties.

🛠️ Step-by-Step Verified Fixes

Method 1: Configure Project Properties

  1. Step 1: Open the Settings window in Android Studio.
  2. Step 2: In the Settings window, navigate to Editor > Code Style.
  3. Step 3: Scroll down and uncheck the box next to "Generated by" under the "Comments and Whitespace" section.

Method 2: Use a Configuration File

  1. Step 1: Create a configuration file named `idea.properties` in the project's root directory.
  2. Step 2: Add the following line to the file: `idea.generatedByComment=true=false`

✨ Wrapping Up

By removing or customizing this comment, you can improve your project's code readability and consistency.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions