diff --git a/platform/lang-impl/src/com/intellij/ide/fileTemplates/impl/FileTemplatesLoader.java b/platform/lang-impl/src/com/intellij/ide/fileTemplates/impl/FileTemplatesLoader.java index 796b83c13b72..585dbe556f89 100644 --- a/platform/lang-impl/src/com/intellij/ide/fileTemplates/impl/FileTemplatesLoader.java +++ b/platform/lang-impl/src/com/intellij/ide/fileTemplates/impl/FileTemplatesLoader.java @@ -273,13 +273,13 @@ class FileTemplatesLoader implements Disposable { } descName = MessageFormat.format("{0}.{1}_{2}" + DESCRIPTION_EXTENSION_SUFFIX, templateName, templateExtension, locale.getLanguage()); - descPath = pathPrefix.isEmpty() ? descName : pathPrefix + descName; + descPath = pathPrefix.isEmpty() ? descName : pathPrefix + "/" + descName; if (descriptionPaths.contains(descPath)) { return descPath; } descName = templateName + "." + templateExtension + DESCRIPTION_EXTENSION_SUFFIX; - descPath = pathPrefix.isEmpty() ? descName : pathPrefix + descName; + descPath = pathPrefix.isEmpty() ? descName : pathPrefix + "/" + descName; if (descriptionPaths.contains(descPath)) { return descPath; }