PhpStorm how to refresh folder content or whole project tree

Solution 1:

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

Solution 2:

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:

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