IntelliJ does not show project folders

后端 未结 30 2492
孤独总比滥情好
孤独总比滥情好 2020-12-07 07:37

I have an issue with IntelliJ. It doesn\'t show any folders in my project view on the left. My setting is \"View As: Project\" How can I manage it so that the folders and p

30条回答
  •  眼角桃花
    2020-12-07 08:00

    I have a better solution that worked for me and it might work for you. No need to delete the whole .idea folder as this way you lose the whole project. It is possible that you just accidentally excluded all folders in project settings. I also found that project folders disappeared. I was trying to find out how to disable indexing, so I was looking at Project Settings -> Modules and I clicked on Excluded to see if I could add the whole project there to ignore it for indexing. It didn't do anything and I couldn't drag and drop the folder under Excluded. What I didn't realize is that simply clicking "Excluded", IntelliJ automatically moves the folder to Excluded and all folders disappeared in Project Explorer. "Excluded" button changes background to gray, which means exclusion is active. This is a very poor user interface because it is hardly noticeable and clicking this button has a far-reaching impact on your project.

    Fix:

    1. Open Project Settings -> Modules
    2. If Excluded is highlighted, click on it
    3. Click Apply or Close

    Result: Folders in your project show up again

    Really bad bad bad UI design! Source and Excluded buttons look like tabs when they work in fact as "Checkboxes"!

    Be careful, just clicking Sources or Excluded seems like an innocent selection of tab without any visible effect, yet it has far-reaching consequences, basically adding or removing files from the build process.

提交回复
热议问题