Title states my problem, i get this error message:
Cannot Create Class Unable to parse template "Class"
Error message: Selected class file name 'Main.java' mapped to not java file type 'Files supported via TextMate bundles'
Anyone got any ideas on how I can solve this?
Please check the File Types . It looks like Main.java
file name or extension was mapped to the wrong file type by accident ( Files supported via TextMate bundles
). Remove the invalid type mapping to fix the problem. The name/extension should be mapped to Java files instead (the default setting).
See if disabling TextMate bundles plug-in helps.
You do not need "Edit" button at all. Instead you need to use "-" (Minus) button in Registered Patterns area:
Select required file type in top list (Recognized File Types) -- do it for "Text files" In bottom list (Registered Patterns) select undesired pattern -- "SomeFileName.java" Click on "-" (Minus) button to remove pattern from the list Repeat 1-2-3 for other undesired patterns
If desired, you can also do this manually by editing config file while IDE is closed. Because it's IDE-wide setting, it is not stored in .idea folder (which has project settinsg only) -- the file to look for is called filetypes.xml and shoudl be located in ~/Library/Preferences/IntelliJIdeaXX/options ( see http://devnet.jetbrains.net/docs/DOC-181 for other OS etc )
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.