智能文件搜索可以忽略空格并在代码中搜索的窗口? [英] Intelligent file search for windows that can ignore whitespace and search in code?

查看:153
本文介绍了智能文件搜索可以忽略空格并在代码中搜索的窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都知道基于Windows的搜索工具,该工具易于使用并且是程序员 友好的.

Does anybody know a Windows based searching tool that is easy to use and is programmer friendly.

我正在寻找的功能:

忽略搜索中的空白

=能够找到

myTestFunction ( $parameter, $another_parameter, $yet_another_parameter )
{ doThis();

使用查询

myTestFunction($parameter,$another_parameter,$yet_another_parameter){doThis();

没有正则表达式.

"semantically"搜索代码(对我来说,必须是PHP):

Search code "semantically" (for me, it would have to be PHP):

  • 仅在评论中搜索
  • 仅搜索函数名称
  • 搜索名为$ xyz的参数
  • 仅在(在此处插入代码构造)中搜索
  • Search in comments only
  • Search in function names only
  • Search for parameters that are named $xyz
  • Search in (insert code construct here) only

如果周围没有东西,那就该有人开发了! :) 我为此开了赏金.

If there is none around, it's high time somebody developed it! :) I have opened a bounty for this.

推荐答案

代码化地"搜索代码(对我来说,必须是PHP):

Search code "semantically" (for me, it would have to be PHP):

为此,您可以(我认为应该)使用

For this you could (and I think should) use some custom code using token_get_all()

另请参阅可用令牌

忽略搜索中的空白

Ignore white space in search

一个简单的正则表达式就足够了.这取决于您的正则表达式库,但大多数都带有空格修饰符/标志.

A simple regex should be sufficient. It depends on your regex-library, but most come with a whitespace modifier/flag.

这篇关于智能文件搜索可以忽略空格并在代码中搜索的窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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