IntelliJ does not show 'Class' when we right click and select 'New'

后端 未结 8 1033
小鲜肉
小鲜肉 2020-12-07 10:26

We\'re creating a new project in IntelliJ and must have something wrong because when we right click on a directory, select New and then get the context menu, Java b

8条回答
  •  有刺的猬
    2020-12-07 11:19

    This can also happen if your package name is invalid.

    For example, if your "package" is com.my-company (which is not a valid Java package name due to the dash), IntelliJ will prevent you from creating a Java Class in that package.

提交回复
热议问题