When I do code merge between branches sometimes the auto merge in Visual Studio 2022 may result in duplicated code segments or duplicated methods. So in such a scenario, I need to efficiently find and remove the duplicated code segments.
How can I find duplicated lines or duplicated code segments in Visual Studio 2022? Is there a method for it or are there any plugins available to download?
I am aware the for Visual Studio Code there's a plug-in by the name duplicate-lines-finder (https://marketplace.visualstudio.com/items?itemName=tlevesque2.duplicate-finder) but what I need is for Visual Studio 2022