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
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.
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.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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With