PhpStorm how to refresh folder content or whole project tree

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.

39351 次浏览

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

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

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

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

Image for answer

As per above screenshot click ctrl + alt + Y