I am trying to reorganize a python module in which duplicate code is the main problem.
Is there any tool that I can use to view the diff of two selected sections so that I can see the difference between these almost identical codes?
Although I don't think the interface is great, check out Clone Digger . See example .
The TC Toolkit may simplify the search for duplicate code, but does not seem to offer good visualization.
: , Atomiq .
Diffuse, :
, .
, Emacs:
M-x clone-indirect-buffer
C-x n n
M-x ediff-two-buffers
, , .
ExamDiff Pro . .
http://www.prestosoft.com/edp_examdiffpro.asp
, , , . , , , .
CloneDR , Python. ( "" ), , (Python), , , , . (Atomiq, , , ).
CloneDR Windows .
Beyond Compare text compare has the "Open Clipboard" command, which will put everything that is on the clipboard on one side of the comparison. If you then copy the second function and use this command again, it will align them with the highlighted differences.
Source: https://habr.com/ru/post/1785335/More articles:Deep reflection in .NET. - reflectionRobots.txt and Google Calendar - phpDelphi7 - How can I copy a file that is written to - file-ioHow to convert a text url to a clickable link on a PHP page? - urlHow to create Android source code with Google API? - androidC # Create Notepad ++ as a search field - c #String to Clob in Java? - javaSending JSON to the server - jsonUsing IUP with Lua on Ubuntu - luaShould I always use connection.close - asp-classicAll Articles