pycharm

How to stop pycharm from searching inside virtual environment folder?


I have a .venv folder inside the project root, which has a python virtual environment. When I use the search feature of Pycharm, it also shows the result from this .venv folder. How can I ignore the virtual environment folder from search results?

I tried marking the directory as Excluded, but that didn't help.


Solution

  • Did you exclude the venv folder? Right-click on the .venv in the project tree -> Mark directory as -> Excluded.