Hi,
Iām currently refactoring a parametrization in a big application. The parametrization looks a bit like this
tab1 = Tab( 'tab1')
tab1.section_a = Section('a')
tab1.section_b = Section('b')
tab2 = Tab('tab2')
tab2.section_c = Section('c')
tab2.section_d = Section('d')
Using the refactoring tool included in PyCharm (right click > refactor), it is relatively easy to rename tab2
to tab1
thoughout the entire app to merge the two tabs. However, I donāt know how to refactor tab2.section_c
, to tab1.section_c
in order to move only section_c.
The refactor tool seems too smart and knows that the ātabā and the āsectionā are two different components, so it wants to refactor them separately. However, that would also move section_d, so that is not what I want.
The replace menu (ctrl + r) would do what I need, but it only works in one file, so that could work for small apps. But that would be very tedious as there are > 50 different files to go trough, for each tab that I would like to moveā¦
Do you guys have any tips?