如何从 Eclipse 中的标记视图中排除文件/文件夹?
Eclipse 中有没有办法阻止标记显示在特定文件夹中文件的“标记”视图中?即,我导入了一个不是我自己编写的 Javascript 库,但它将成为我项目的一部分,我不想查看这些文件中的所有“TODO”和“FIXME”标记,只需只想查看我的标记...有没有办法排除标记进程扫描的某些文件夹或文件?
Is there a way in eclipse to stop markers from showing in the Markers view for files in a certain folder? I.e. I imported a Javascript library that I didn't write myself but it is going to be part of my project and I don't want to have to look at all the "TODO" and "FIXME" markers in those files and would just want to see my markers only... Is there a way to exclude certain folders or files form being scanned by the markers process?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
显然,我可以通过将要排除的文件夹添加到项目->属性->验证下的排除列表中来解决此问题。 (单击每个验证旁边的设置,添加排除组按钮,添加规则按钮,选择文件夹选项,浏览相关文件夹)
Apparently, I was able to resolve this by adding the folders I wanted to exclude to the exclusion list under Project->Properties->Validation. (Click settings beside each validation, Add Exclude Group button, Add Rule button, select folder option, browse for relative folder)
您可以通过单击“小向下箭头”来配置“标记”视图的内容(在源代码中显示错误和警告的视图)和“任务”视图的内容(显示“TODO”和“FIXME”的视图) ”位于视图右上角(靠近最小化和最大化按钮),然后单击配置内容...条目。
希望这能有所帮助,
马努
You can configure the content of the Markers view (the one displaying errors and warning in source code) and the content of the Tasks view (the one displaying "TODO" and "FIXME") by clicking on the "small down arrow" in the top right of the view (near the minimize and maximize buttons) and then clicking on Configure Contents ... entry.
Hope this can help,
Manu
通过像 Manu 所说的那样选择配置内容,还可以选择使用范围区域列出特定工作集的任务。正确的。
这对我有用,我不再对所有 Zend Framework @todo 感到恼火。
希望这有帮助,斯特凡
By selecting Configure Contents like Manu said, there is also the option to list the tasks for a specific working set, using the Scope area at the right.
That worked for me, and I'm not annoyed anymore by all Zend Framework @todo.
Hope this helped, Stéphane
我正在做一个节点应用程序,想要排除我的节点模块文件夹。我发现执行此操作的唯一方法是创建一个排除该目录的工作集并设置任务 ->配置该工作集的内容。
如何排除在 Eclipse 项目中产生警告/错误的文件夹?
I'm doing a node app and wanted to exclude my node modules folder. I found the only way to do this is to create a working set that excludes that directory and set the Task -> configure contents to that working set.
How to exclude a folder that is producing warnings/errors in an Eclipse project?