如何阻止Eclipse刷新某些目录? [英] How do I stop Eclipse from refreshing some dir?

查看:1212
本文介绍了如何阻止Eclipse刷新某些目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次启动Eclipse时,都会尝试刷新一个完整的项目,这样可以等待10分钟以上的时间,更不用说可以消耗的可笑内存。



我知道有一个全局设置来关闭自动刷新(常规 - >工作区 - >自动刷新)。有没有办法把这个关闭个别目录?根据


Every time I start Eclipse it tries to refresh an entire project, which translates to more than 10 minutes of wait time, not to mention the ridiculous amount of memory it would consume.

I know there's a global setting to turn off automatic refreshing (General -> Workspace -> Refresh automatically). Is there a way to turn that off on individual directories? The rationale is that some directories are seldom changed in some of my projects.

解决方案

According to this thread, no:

  • no settings per projects (for disabling auto-refresh)
  • no settings per directory within one project.

For more recent versions of Eclipse, as detailed in Eclipse help page, you can use Resource filters (also initially mentioned below by pcoucke)

Resource filters can be created, edited and removed in the File > Properties > Resource > Resources Filters property page for a project or folder resource.

Resource filters only apply to files and/or folders that are implicitly included in the workspace by the refresh operation
An "Exclude" resource filter prevent all files and/or folders that match the filter condition to be included in the workspace during the refresh operation.

I mentioned an example in "How to have .git folders ignored by Eclipse projects"

这篇关于如何阻止Eclipse刷新某些目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆