Lukas
Lukas

Reputation: 451

How can I prevent Pycharm's renaming function to modify library modules?

I have a class named Error. When I try to rename it with Ctrl+F6, PyCharm wants to also rename any Error appearances in library moudles, too. Is there a way to limit the scope in which PyCharm looks for occurences of Error?

Thank you!

Upvotes: 0

Views: 31

Answers (1)

gonczor
gonczor

Reputation: 4146

Right-click on the project tree and mark your source code as "sources" and external libraries as "excluded".

enter image description here

Upvotes: 2

Related Questions