Eclipse问题视图的最佳实践 [英] Best Practices for Eclipse's Problems View

查看:168
本文介绍了Eclipse问题视图的最佳实践的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Eclipse已经有一段时间了,我还没有找到如何配置问题视图,只显示感兴趣的错误和警告。是否有一个简单的方法来过滤特定资源或特定路径的警告?例如,当我生成javadoc时,我会收到大量不相关的html警告。另外,有没有办法改变出现的警告/错误的最大数量?

I am using Eclipse for quite some time and I still haven't found how to configure the Problems View to display only the Errors and Warnings of interest. Is there an easy way to filter out warnings from a specific resource or from a specific path? For example, when I generate javadoc I get tons of irrelevant html warnings. Also, is there a way to change the maximum number of appearing warnings/errors?

我知道过滤器的概念,但我正在寻找一些现实生活中的例子。其他人使用什么样的过滤器或做法?

I am aware of the filters concept, but I am looking for some real life examples. What kind of filters or practices do other people use?

编辑:我找到了关于On selected element and their children成为最好的一个。我还有另外一个问题。如果我有很多的警告或错误,只有前100个出现。在极少数情况下,我想看到所有这些,我该怎么做?

I found the advice to filter on "On selected element and its children" to be the best one. I have one other issue however. If I have "a lot" of warnings or errors, only the first 100 appear. In the rare case I want to see all of them, how do I do it?

推荐答案

我觉得过滤元素及其子元素是问题视图过滤器的最佳模式,因为它允许您快速缩小报告问题的范围:单击工作集(在包资源管理器中),并显示集合中所有项目中的所有问题;点击一个项目 - 只显示所选项目中的问题。单击单个类(或包) - 仅显示所选类(或包)中的问题。所以你不会因为您手头的任务无关的问题而分心。

I feel that filtering "On selected element and its children" is the best mode of Problems view filter, because it allows you to very quickly narrow down the scope of reported problems: click on Working Set (in Package Explorer), and it shows all problems in all projects in the set; click on a project - and only problems in the selected project appear. Click on individual class (or package) - only problems in the selected class (or package) are shown. So you don't get distracted with problems unrelated to your task at hand.

这篇关于Eclipse问题视图的最佳实践的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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