PhpStorm how to refresh folder content or whole project tree

PhpPhpstorm

Php Problem Overview


This may be a dumb question, but I can not find an option to refresh folder content in project tree (PhpStorm IDE). Is this (really basic) feature missing?

I know, that content is refreshed automatically, but in some types of folders, where files are generated and changed often this does not work.

Php Solutions


Solution 1 - Php

right click on the folder and then synchronize 'nameOfFolder' to refresh a specific folder

Solution 2 - Php

If that does not solve your problem it might be that you have an invalid cache. You can solve this issue by invalidating your cache.

Select File then Invalidate Caches / Restart... from the menu then Invalidate and Restart.


Note: this solution will delete the cache, including local history, for all projects.

This is also explained in the answer to this question on StackOverflow

Solution 3 - Php

Tested in phpstorm 2016.3

The behavior I've want is for the IDE to be up-to-date with any file changes made via the terminal or external application (like Git).

I found this solution via Google: https://intellij-support.jetbrains.com/hc/en-us/community/posts/206356869-PhpStorm-should-scan-project-directory-for-changes

Select File then Settings then Appearance & Behavior then select System Settings and finally under Synchronization checkmark Synchronize files on frame or editor tab activation

If the above directions are long winded, Goto settings and search for "synchronization".

enter image description here

Solution 4 - Php

Right click on the root folder that is showing in your project tree. Then click on "Reload from Disk".

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionapocalypzView Question on Stackoverflow
Solution 1 - PhpFreelancerView Answer on Stackoverflow
Solution 2 - PhpWiltView Answer on Stackoverflow
Solution 3 - PhptenkenView Answer on Stackoverflow
Solution 4 - PhpahmadView Answer on Stackoverflow