What is the difference between Remove and Exclude when refactoring with PyCharm?

PyCharm's official docs explain Exclude when it comes to refactoring: for example, you can rename something with refactoring (Shift + F6), as a result of which the Find window will pop up with a preview window. Inside, it shows files that will be updated as a result of refactoring. Right-click on a file or folder in this Preview and select Remove or Exclude . What's the difference?

+8
refactoring pycharm
source share
1 answer

The end effect is the same - the record that was Removed or Excluded will not be reorganized, the difference in presentation. After selecting Exclude you save the entry in Refactoring Preview , but Remove removes it from this window.

I think that Remove can be useful when you are dealing with quite a lot of refactoring and labeling everything that is excluded, can lead to an unreadable mess.

Keep in mind that an action cannot be undone - you need to start a new refactoring ...

+1
source share

All Articles