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.
📋 Table of Contents
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
- Step 1: Open the Settings window in Android Studio.
- Step 2: In the Settings window, navigate to Editor > Code Style.
- Step 3: Scroll down and uncheck the box next to "Generated by" under the "Comments and Whitespace" section.
Method 2: Use a Configuration File
- Step 1: Create a configuration file named `idea.properties` in the project's root directory.
- 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.
❓ Frequently Asked Questions
You can customize or remove the comment by editing the project's properties.
Step 1: Open the Settings window in Android Studio.Step 2: In the Settings window, navigate to Editor > Code Style.Step 3: Scroll down and uncheck the box next to "Generated by" under the "Comments and Whitespace" section.
Step 1: Create a configuration file named `idea.properties` in the project's root directory.Step 2: Add the following line to the file: `idea.generatedByComment=true=false`
By removing or customizing this comment, you can improve your project's code readability and consistency.
🛠️ Related Fixes
How to Fix: Stuck in tutorial hell after 4 years: How do I b
Fix Stuck in tutorial hell after 4 years: How do I bui. Practice build
How to Fix: Trying to sync mutliple audio tracks to a movie
Fix Trying to sync mutliple audio tracks to a movie bu. Consider using
How to Fix: Failed to merge latest branches from upstream re
Fix Failed to merge latest branches from upstream repo. Try running 'g