How to register a filetype that has no file name extensions?

I want to register a special file type. All files have a fixed name without any extension, for example, "CUSTOM". I checked LanguageFileType class and got stuck. How to register this file type in intellij idea?

0
2 comments

Use com.intellij.openapi.fileTypes.FileTypeFactory and provide com.intellij.openapi.fileTypes.ExactFileNameMatcher


0

Hi, Yann. It works! Thanks again!

0

Please sign in to leave a comment.