Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add copyright to Android-Studio?

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 make it work... copyrights just don't appear when I create a new Java file.
Is it a bug of Android Studio or did I miss something ?

like image 320
klefevre Avatar asked Jun 27 '13 14:06

klefevre


People also ask

How to Create copyright in Android Studio?

1 - To add or update copyright in android studio, go to Settings > Copyright > Copyright Profile (or Preferences > Editor > copyright in Mac). 2 - Create your copyright profile, add your message and apply the changes.

How do I add copyright to IntelliJ?

Press Ctrl+Alt+S to open the IDE settings and select Editor | Copyright. From the Default project copyright list, select the profile you want to use as the default profile. Apply the changes and close the dialog. After that you can add the copyright to the necessary files.

Is Android Studio free for commercial use?

Android Mobile App developed using Android studio is free for commercial use ? I moved this to the Developers Lounge for more specific traffic. Yes to both. Android Studio is designed to be used (with no fee) to develop apps that you'll be selling.

Is Android studio owned by Google?

Android Studio is the official integrated development environment (IDE) for Google's Android operating system, built on JetBrains' IntelliJ IDEA software and designed specifically for Android development.


2 Answers

On the file you want to insert the copyright notice you have to press Alt+Insert for Windows and GNU/Linux or Command+N for Mac and select the copyright to be inserted.

http://www.jetbrains.com/idea/webhelp/generating-and-updating-copyright-notice.html

like image 50
José Mira Avatar answered Sep 28 '22 09:09

José Mira


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

Sample Copyright Template Text

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

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

like image 22
Karthik Kompelli Avatar answered Sep 28 '22 10:09

Karthik Kompelli