Problem with IntelliJ -> Cannot create class with name “Main”

百般思念 提交于 2020-05-23 10:33:09

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/59649916/problem-with-intellij-cannot-create-class-with-name-main

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!