问题描述
在 Android Studio 中,我尝试按照以下步骤创建新的 Java 模板
In Android studio, I am trying to create new Java templates by following the below steps
Android Studio -->文件 -->编辑文件模板 -->添加了带有 java 扩展名的新文件.-->
添加了所需的代码
我可以使用这个模板来创建新文件.但是我想看看这个模板路径.这些在哪里?
I am able to use this template for creating new files.But I want to see this template path.Where these are located?
我可以在 /AndroidStudio/plugin/android/lib/templates
中看到 Android Studio 预定义模板,但没有看到我新创建的模板.任何人都知道在哪里可以找到新创建的模板.?
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.?
谢谢
推荐答案
1.导航到模板文件夹的位置:
1.Navigate to the location of the templates folder :
{ANDROID_STUDIO_LOCATION}/plugins/android/lib/templates/other/
2.在 MacOS 上,这个文件夹如下:
2.On MacOS, this folder was the following:
/Applications/Android Studio.app/Contents/plugins/android/lib/templates/other/
这篇关于在 Android Studio 中在哪里可以找到自定义模板路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!