Pycharm replace and find all the same code methods in the file

1. Open the file to be modified

2. ctrl r calls out the replacement function, as shown in the figure:

3. The red box above is the part that needs to be changed, and the red box below is the part you want to change. After editing, click "replace all".

Example
original page

ctrl r calls up the replacement function, as shown
in the figure, enter the field to be replaced in the previous column, and enter the field you want to replace in the next

Click replace all
results

Ctrl + Shift + F global search
Ctrl + F search

Ctrl + Shift + R global replacement
Ctrl + R replacement
Insert picture description here

Guess you like

Origin blog.csdn.net/kobeyu652453/article/details/112357924