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?
Please sign in to leave a comment.
Use com.intellij.openapi.fileTypes.FileTypeFactory and provide com.intellij.openapi.fileTypes.ExactFileNameMatcher
Hi, Yann. It works! Thanks again!