2

I have inherited a large code base, which I would like to refactor.

I notice lost of code which is obviously copy, paste & tweak, which is an obvious candidate for a parametrized function.

Is there any Visual Studio extension which will help me to detect such similar code?

Not that it must be a VS extension as we are not allowed to install 3rd party software which runs stand-alone, but VS extensions seem to be acceptable.

1

Yes, Visual Studio Enterprise offers Code Clone Detection out-of-the-box.

So no need of VS extension but a paid Enterprise license is needed.

1
  • My company only pays for professional :-( but, upvote, as you answer may help others Dec 6 '21 at 15:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.