简体   繁体   English

如何在Vista中搜索文件(例如Java文件)?

[英]How do I search in files (for example in Java files) in Vista?

Is there a way or tool for Vista I can use to search for content in Java files? 我可以使用Vista的某种方式或工具来搜索Java文件中的内容吗? (I do not have an Eclipse project set up for it) (我没有为此设置Eclipse项目)

I used to be able to do it easily in the windows search tool when I had Windows 2000. 使用Windows 2000时,我曾经能够在Windows搜索工具中轻松地做到这一点。

Edit: I have already enabled "search file contents" and added additional file types as recommended by xsl and Grant Wagner, the search still returns no results... 编辑:我已经启用了“搜索文件内容”并添加了xsl和Grant Wagner推荐的其他文件类型,搜索仍然没有返回结果...

Personally, I just use BareGrep (and previously, Agent Ransack ), which is fast, supports regexes and show lines that match. 就个人而言,我只使用BareGrep (以前称为 Agent Ransack ),它非常快,支持正则表达式并显示匹配的行。
grepWin is nice too (can replace strings) but doesn't show lines. grepWin也很好(可以替换字符串),但是不显示行。

There are tons of search tools. 有大量的搜索工具。 Simplest and smallest is the GNU grep. 最简单和最小的是GNU grep。

I personnally use Far (for many things, not just search). 我个人使用Far(很多东西,而不仅仅是搜索)。

在“ 观看网络”“ How-To Geek”中介绍了如何在Vista的索引中添加其他文件类型。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM