How to exclude files/folder from Markers view in eclipse?

混江龙づ霸主 提交于 2019-12-10 12:33:46

问题


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?


回答1:


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)




回答2:


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




回答3:


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




回答4:


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?



来源:https://stackoverflow.com/questions/6594945/how-to-exclude-files-folder-from-markers-view-in-eclipse

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!