After I had installed PhpStorm and created a project from an existing source files, The project pane is not showing any file from the directory. So how can we solve the problem?
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)
From the main menu, select Edit | Find | Find in Files Ctrl+Shift+F . In the search field, type your search string. Alternatively, in the editor, highlight the string you want to find and press Ctrl+Shift+F . PhpStorm places the highlighted string into the search field.
Open a projectClick Open on the Welcome screen or select File | Open from the main menu. In the Select Path dialog, select the directory that contains the project to open.
In case both above solutions do not work, try this following approach:
cd
to your projects .idea
Folder
Check if there is a file called project_name.iml
. If this is not the case create it and paste the following content to it
<?xml version="1.0" encoding="UTF-8"?> <module type="WEB_MODULE" version="4"> <component name="NewModuleRootManager"> <content url="file://$MODULE_DIR$"></content> </component> </module>
Then check if there is a file called modules.xml
. If this is not the case create it and paste the following content to it (which targets to your previously created project_name.iml
)
<?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="ProjectModuleManager"> <modules> <module fileurl="file://$PROJECT_DIR$/.idea/project_name.iml" filepath="$PROJECT_DIR$/.idea/project_name.iml" /> </modules> </component> </project>
Restart PhpStorm
After investigation on the issue, I got the solution as follow:
Here is the source
https://intellij-support.jetbrains.com/hc/en-us/community/posts/207066915-Project-view-not-showing-directories
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With