php PhpStorm 如何刷新文件夹内容或整个项目树
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17966860/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
PhpStorm how to refresh folder content or whole project tree
提问by apocalypz
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?
这可能是一个愚蠢的问题,但我找不到在项目树(PhpStorm IDE)中刷新文件夹内容的选项。是否缺少此(非常基本的)功能?
I know, that content is refreshed automatically, but in some types of folders, where files are generated and changed often this does not work.
我知道,该内容会自动刷新,但在某些类型的文件夹中,通常会生成和更改文件,这不起作用。
回答by Freelancer
right click on the folder and then synchronize 'nameOfFolder' to refresh a specific folder
右键单击文件夹,然后同步“nameOfFolder”以刷新特定文件夹
回答by Wilt
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 Filethen Invalidate Caches / Restart...from the menu then Invalidate and Restart.
选择File,然后Invalidate Caches / Restart...从菜单然后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
回答by tenken
Tested in phpstorm 2016.3
在 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).
我想要的行为是让 IDE 与通过终端或外部应用程序(如 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
我通过谷歌找到了这个解决方案:https: //intellij-support.jetbrains.com/hc/en-us/community/posts/206356869-PhpStorm-should-scan-project-directory-for-changes
Select Filethen Settingsthen Appearance & Behaviorthen select System Settingsand finally under Synchronizationcheckmark Synchronize files on frame or editor tab activation
选择File然后Settings然后Appearance & Behavior选择System Settings最后在同步复选标记下Synchronize files on frame or editor tab activation
If the above directions are long winded, Goto settings and search for "synchronization".
如果以上方向冗长,请转到设置并搜索“同步”。