In Android studio where to find custom templates path

落爺英雄遲暮 提交于 2020-12-29 19:51:12

问题


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


回答1:


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/



来源:https://stackoverflow.com/questions/51647169/in-android-studio-where-to-find-custom-templates-path

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!