简体   繁体   中英

Intellij IDEA : no new java package menu option

Environment :

  • Windows 10
  • Intellij IDEA 2021.3.2 (Community Edition)

I'v setup a new Spring project and on right clicking on the directory structure to create a new java package there's no more new / package nor class option. I already faced that issue and the solution was to "Mark Directory as" the src directory as "sources root" (by right clicking on the src directory). But now this "Mark Directory as" option has disappeared.

奇怪:删除 .idea 根目录并重新启动 IDE 解决了问题。

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM