简单的eclipse搜索问题 [英] Simple eclipse search problem

查看:108
本文介绍了简单的eclipse搜索问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用eclipse文件搜索选项非常多地搜索我的工作区中的所有文件的某些内容。但是如何指定它只能从固定的搜索条件返回命中?作为一个例子,我想找到所有出现的字符串:

I use the eclipse File Search option very much to search all files in my workspace for a certain content. But how do I specify that it should only return hits from a fixed search criteria? As an example I would like to find all occurrences of the string:

com.mystuff.data

但我也得到所有的匹配:

but I also get all the hits for:

com.mystuff.data.ui

如何制作这个字符串在我的工作空间中搜索文件时,只能搜索

How do I make a "this-string-only-search" when searching files in my workspace??

推荐答案

如果我理解正确,Eclipse不提供选项搜索确切的单词。
您可以使用正则表达式。

您可以使用 \bSearchKeyword\b 查找确切的单词。

If I understand you correctly, Eclipse don't provide option to search exact word. You can use regular expression for it.
You can use \bSearchKeyword\b to find exact word.

这篇关于简单的eclipse搜索问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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