找到完全匹配的单词

时间:2017-05-22 18:34:43

标签: ide pycharm jetbrains-ide

我想在我的项目中搜索“群组”。

然而,当我使用搜索对话框时,我可以看到所有“组”结果,还可以看到“组”,“分组”和“石斑鱼”。

我不想看到最后三个,只有匹配到“组”。

有没有办法在PyCharm 2017.1中做到这一点?

我已尝试过引号和匹配案例框。我没有做过我所追求的事情。

由于

1 个答案:

答案 0 :(得分:2)

您可以在此处使用Words选项(https://www.jetbrains.com/help/pycharm/2017.1/find-and-replace-in-path.html):

Words   
Select this check box to have PyCharm search for whole words or their parts, (character strings separated with spaces, tabs, punctuation, or special characters).
This check box is disabled, if the Regex check box is selected.

enter image description here