IntelliJ的问题->无法创建名称为"Main"的类 [英] Problem with IntelliJ -> Cannot create class with name "Main"

查看:608
本文介绍了IntelliJ的问题->无法创建名称为"Main"的类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

标题说明了我的问题,我收到此错误消息:

Title states my problem, i get this error message:

无法创建类,无法解析模板类"

Cannot Create Class Unable to parse template "Class"

错误消息: 所选类文件名"Main.java"映射到非Java文件类型 通过TextMate捆绑包支持的文件"

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).

查看是否禁用 TextMate包插件有帮助.

See if disabling TextMate bundles plug-in helps.

这篇关于IntelliJ的问题->无法创建名称为"Main"的类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆