问题描述
使用Indigo和托管的C ++构建项目,我右键单击源文件,然后选择 Resource Configurations-> Exclude from Build ...
和文件迅速消失。向下滚动将其显示在源文件列表的底部,带有一个新的灰色图标。现在我该如何找回它? 重置为默认值...
选项始终为灰色。右键单击排除的文件仍然仅显示从构建中排除...
选项。某处是否有包含在Build
选项中?我知道可以转到.cproject文件并手动对其进行编辑,但是我认为必须有一种从IDE中进行编辑的方法。
Using Indigo and a managed build C++ project, I right-clicked on a source file and selected Resource Configurations->Exclude From Build...
, and the file promptly disappears. Scrolling down shows it at the bottom of the list of source files with a new dimmed icon. Now how do I get it back? The Reset to Default...
option is always dimmed out. Right-clicking on the excluded file still only shows the Exclude From Build...
option. Is there an Include in Build
option somewhere? I realize I can go to .cproject file and manually edit it back in but I figure there must be a way to do it from the IDE.
推荐答案
在Eclipse中,没有类似的方法来重新包含资源,例如:
In eclipse there's not a similar way to reinclude resource, like:
- 资源配置->从构建中重新包含
您需要进入项目属性(Alt + Enter)并进入:
You need to go in Project Proprerties (Alt+Enter) and go:
C/C++ General -> Paths and Symbols
选择选项卡
Source Location
并展开项目的文件夹:在这里您可以选择过滤器您想要删除的内容,然后点击 编辑过滤器,然后点击 删除。
and expand your project's folder: here you can select filter that you want to remove and click on "Edit Filter" and then "Remove".
这篇关于如何获取从Eclipse CDT中的构建配置中排除的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!