Is there a way to generate multiple files/classes with intellij code/file templates? [duplicate]

Solution 1:

This feature seems to be available in ReSharper (another JetBrains IDE). It still does not seem possible in IDEA yet.

Solution 2:

At the moment IDE doesn't support this feature. Most popular youtrack request have 60+ votes, but it still opened(since 2012). You can use 3rd party solution, for example this plugin.

Solution 3:

It's possible (now). See below links.

https://riggaroo.co.za/custom-file-template-group-android-studiointellij/ https://medium.com/codequest/file-group-templates-in-android-studio-unofficial-guide-85dfa0a0c1ec