Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Android studio where to find custom templates path

In Android studio, I am trying to create new Java templates by following the below steps

Android Studio --> File --> Edit File Template --> Added New file with java extension.--> Added required code

I am able to use this template for creating new files. But I want to see this template path.Where these are located?

I can see Android studio predefined templates in /AndroidStudio/plugin/android/lib/templates BUT not seeing my newly created templates. Anyone has any idea where new created templates can be found.?

Thanks

like image 431
Aada Avatar asked Aug 02 '18 06:08

Aada


People also ask

How to add templates in Android Studio?

For creating new templates, right click on the source code folder and select “New”, then select “Edit File Templates”. Here you can see some predefined templates but we don't need this so click on “+” icon in top left corner. After this action your screen should look like this.

What is project template in Android Studio?

Android Studio provides code templates that follow the Android design and development best practices to get you on the right track to creating beautiful, functional apps. You can use templates to create new app modules, individual activities, or other specific Android project components.


1 Answers

1.Navigate to the location of the templates folder :

{ANDROID_STUDIO_LOCATION}/plugins/android/lib/templates/other/

2.On MacOS, this folder was the following:

/Applications/Android Studio.app/Contents/plugins/android/lib/templates/other/

like image 126
sankalp Avatar answered Sep 22 '22 03:09

sankalp