Intellij Idea:在Java字符串中搜索? [英] Intellij Idea : Search in java Strings?

查看:875
本文介绍了Intellij Idea:在Java字符串中搜索?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在Intellij IDEA中仅在Java字符串中进行搜索?

Is there a way to search only in java strings in Intellij IDEA ?

我已经搜索过,但找不到任何东西.我必须重构以Java字符串编写的休眠HQL查询.如果IDE支持字符串搜索,那么对我来说将更加容易.

I have searched and could not found anything on this. I have to refactor hibernate HQL queries written as java strings. If IDE support search in strings it will be lot more easy to me.

推荐答案

按CTRL + SHIFT + F键可让您搜索仅字符串文字":

Pressing CTRL + SHIFT + F gives you the possibility to search in "String literals only":

这也适用于CTRL + F:

This also works with CTRL + F:

此外,您还可以为某些精美的搜索启用正则表达式.

Additionally you can enable regular expression for some fancy searches.

这篇关于Intellij Idea:在Java字符串中搜索?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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