Can't see project folders in IntelliJ IDEA

后端 未结 8 1164
半阙折子戏
半阙折子戏 2020-12-24 05:25

Every once in a while, I open an old project and I can\'t see any of the folders in the intelliJ project viewer. I can see all the files at the root.. but no folders. Yes I

相关标签:
8条回答
  • 2020-12-24 05:29

    If you look in project settings (ctrl-shift-alt-s), you should see a module structure. If you instead see "Nothing to see", do the following:

    1. In Project Structure -> Modules, press the + button,
    2. press enter (since, for some weird reason, it won't let me click on "New Module")
    3. In the window that pops up, click on the "..." next to Content root, find your root folder, and select it
    4. Press ok
    5. ignore any warning that says the name is already in use (or to that effect)
    0 讨论(0)
  • 2020-12-24 05:29

    For me, the java folder was not showing up. I went into File->Project Structure. In the second column, I selected on _main. In the third column, I selected the tab "sources". In what I call the fourth column, where the "+Add Content Root" is shown, I verified, the java source/folder was present. In my case, there was an extra source folder, which was the current location. I removed this, applied and the java folder immediately showed up.

    0 讨论(0)
  • 2020-12-24 05:31

    the simplest solution worked from me, just delete the .idea folder

    0 讨论(0)
  • 2020-12-24 05:33

    It might be because the project didn't have any modules defined. Try adding existing source code by hitting File > New > Module from Existing Sources and select the parent directory of the project for source code

    0 讨论(0)
  • 2020-12-24 05:45

    Go to pom.xml file -> right click -> maven -> generate source and update folders. You will see your files and folder structures in left hand side.

    0 讨论(0)
  • 2020-12-24 05:46

    Right click on the Project name -> Open Module Setting -> Check the application context path set it up at your project location.

    0 讨论(0)
提交回复
热议问题