首页 > 解决方案 > 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!

标签: pythonpycharm

解决方案


右键单击项目树并将源代码标记为“源”,将外部库标记为“排除”。

在此处输入图像描述


推荐阅读