本文介绍了完全从Eclipse CDT项目中排除某些目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用内置的C ++代码库。

I am working a C++ codebase that is built & run outside Eclipse.

我用它制作了一个Eclipse项目,我只使用Eclipse来浏览/编辑代码。

I made an Eclipse project out of it where I just use Eclipse for browsing/editing the code.

但是,我不知道如何完全 完全排除诸如build /的某些目录。不仅应该在构建过程中,而且在似乎经常触发的刷新工作空间期间,也应将它们排除在外。举个例子,我的工作区是

However, I can't figure out how to completely exclude certain directories like build/ from it completely. They should be excluded not only during building but also during "Refresh workspace" which seems to get triggered so often. To give an example, my workspace is

d:\workspace

它具有目录

source/
build/
..

在启动过程中,Eclipse会自动拾取工作区中的所有目录。但是,我希望Eclipse完全排除 build /

During startup, Eclipse picks up all directories inside the workspace automatically. However, I would like Eclipse to exclude build/ completely.

我的代码位于远程计算机上,因此刷新工作空间。

My code is on a remote machine, so "Refresh workspace" slows things down.

推荐答案

您可以通过添加。将排除所有资源过滤器类型添加到项目的根文件夹。另请参见。

You can do it by adding Resource filters. Add Exclude All resource filter type to root folder of your project. See also this answer.

这篇关于完全从Eclipse CDT项目中排除某些目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-09 05:16