Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compare two Python methods in PyCharm

I've recently switched from Eclipse to PyCharm, and I wonder if PyCharm can compare two methods to each other, like Eclipse can. So far, my searching has failed.

I have two similar methods, and I want to check exactly what the differences are.

like image 780
Don Kirkby Avatar asked Oct 27 '16 20:10

Don Kirkby


1 Answers

1

highlight one function and copy it into the clipboard....

highlight the second function and right click select "compare with clipboard"

2

take highlight the first method and hit delete

paste in the second method where the first one was

right click and select "local history"

like image 50
Joran Beasley Avatar answered Oct 31 '22 17:10

Joran Beasley