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.
Did you exclude the venv folder? Right-click on the .venv
in the project tree -> Mark directory as -> Excluded.
I'm experiencing the same issue: Even though I've marked the .venv
directory as excluded, its contents still show up in the "Find in Files" search results.
I've found a workaround for this, though. In my "Project Settings" I define an "Exclude files" pattern like so:
**.venv**
as the value for "Exclude files:".If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With