Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij IDEA Project view doesn't show structure as it did before.

My directory structure in the Project seems to have disappeared. The first picture is the "bad". I recently upgraded to 12.1 and the vim emulator at about the same time. I don't know if I missed a dialog that reset something? I can't figure out how to get it back like the second picture.
I've tried to re-import the project but it has not helped. I keep the project on Dropbox and have another PC where I have not reloaded project. Is there a way to get my view from that machine?

Bad

The picture is the "good" and how I want it to look.
Good

like image 802
Gary Avatar asked Apr 07 '13 04:04

Gary


People also ask

Why project structure is not showing in IntelliJ?

Restart IntelliJ. Verified that the project root folder now appeared (in Project Settings > Modules) Toggle On the toolbar buttons (i.e. 1. Project Structure) to display on the left sidebar (clicked View > Toolbar Buttons until tick appears)

How do I show project structure in IntelliJ?

To change settings of a module that hosts the file you are currently editing, just press Alt+F1, 7 or open the View menu, select Select In and click Project Structure. IntelliJ IDEA will open the Project Structure dialog and jump to the required module.


2 Answers

I've come across this problem a few times myself. What happened is that intellij lost the module in my project settings. Here's my steps to fix it:

File -> Project Structure -> Click on modules (notice empty list) -> Click on '+' -> Click on import module -> Find existing myProj.iml

like image 91
SnellyBigoda Avatar answered Sep 24 '22 02:09

SnellyBigoda


I also have quite a few IntelliJ projects and also git folders of text files. I found IntelliJ does not always reconstruct the .idea files correctly. However the following methods work for me.

  • Open IntelliJ in the top folder where there is no .idea folder. Often IntelliJ will just construct a new .idea folder and works.
  • Copy an .idea folder from a similar project and modify to fit. The xml files in the .idea are reasonable to modify.
  • like image 32
    Li Li Avatar answered Sep 23 '22 02:09

    Li Li