Eclipse 中是否有一个很好的“查找全部”功能?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8089286/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 17:18:41  来源:igfitidea点击:

Is there a good "find all" function in Eclipse?

eclipseeclipse-cdtstatet

提问by power

I have been using Eclipse for R and C++. So far I have not been able to find a reliable "find all" function. It seems to be an easy concept, I search for a string such as "rows" and the function should return all occurences of it within the that I currently have open. (Even if it's in all files in my owrkspace, that's fine too.)

我一直在为 R 和 C++ 使用 Eclipse。到目前为止,我还没有找到可靠的“查找全部”功能。这似乎是一个简单的概念,我搜索诸如“行”之类的字符串,并且该函数应该返回我当前打开的所有出现的字符串。(即使它在我的 owrkspace 中的所有文件中,也没关系。)

However, I have either not understood how to use the "search" functions correctly or they are very buggy.

但是,我要么不明白如何正确使用“搜索”功能,要么它们有很多问题。

So my question is how do I search for all occurences of a string in a file in Eclpise?

所以我的问题是如何在 Eclpise 的文件中搜索所有出现的字符串?

Adobe Dreamweaver, for example, has been able to do this for years.(Although it's completely unrelated to R and C++)

例如,Adobe Dreamweaver 多年来一直能够做到这一点。(虽然它与 R 和 C++ 完全无关)

I would like to view a list of all occurences and then be able to click on a specific occurence to go to it.

我想查看所有出现的列表,然后能够单击特定的出现以转到它。

回答by Ramandeep Singh

After opening Eclipse, (corresponding to a workspace), Press "CTRL + H" anywhere and you can search anything

打开Eclipse后,(对应一个工作区),任意处按“CTRL+H”,就可以搜索到任何东西

  • like java files that contain specific "keywords".
  • all occurences within a java file.
  • plugins names etc
  • 像包含特定“关键字”的java文件。
  • java文件中的所有出现。
  • 插件名称等

回答by dashesy

Just type "rows" or whatever the search term is somewhere in text, select it (so that it becomes highlighted) then press "Alt+Ctrl+g". This will perform a global search for that term, pretty handy.

只需键入“行”或文本中某处的任何搜索词,选择它(使其突出显示)然后按“Alt+Ctrl+g”。这将对该术语执行全局搜索,非常方便。