我怎么才能在 Pycharm 的文件里找到一个单词

我是 PyCharm (和 Python)的新手,但是在 PyCharm 项目的所有文件中都找不到一个完整的单词搜索方法。每次我做编辑-> 查找它不断搜索任何在当前文件中搜索的单词,我的插入符号位于。如何做一个完整的扫描所有文件的一个字,我打字?

当我选择“查找用法”时,它会告诉我将插入符号定位到一个特定的单词。

47713 次浏览

If you look at the "project files" tool window, you can right click a directory and choose "find in path".

On the main menu, choose Edit | Find | Find in Path, or press:

Windows or Linux: Ctrl + Shift + F

Mac: + + F

More info here

Actually, you should try double shift, it's search everywhere.

Ctrl + Shift + F as others have stated. In addition, toggle those four buttons below the search bar to vary the scope of your search... In Project Module Directory Scope. You really have to watch out. Also, take note of the check boxes above. You want everything to be properly set. You don't want to be searching a Directory when your intention is to search the whole project.

There are multiple ways to do this. I am using PyCharm 2019.1, but I bet that it will work in previous versions.

Find in path shortcut:

+ + F (mac) or

Ctrl + + F (windows or linux)

This will open the following in which you can type the word you are looking for.

enter image description here

Find action shortcut

+ + A (mac) or

Ctrl + + A (windows or linux)

The following will be opened in which you could type Find, and select the option Find in Path (notice that the command for this action is displayed next to it). After selecting this, you will be taken to the same menu that is opened when running the Find in path shortcut.

enter image description here

Right click on your project's directory, and choosing Find in Path...

You can right-click on your project's name, and select the option Find in Path... which will also open the menu that is opened after running the Find in Path shortcut.

enter image description here

Make sure that you chose the actual working folder, and not it's parent.