Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7632287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:35:18+00:00 2026-05-31T06:35:18+00:00

I really like the new built in feature of VS11 to find ‘Code Clones’

  • 0

I really like the new built in feature of VS11 to find ‘Code Clones’ but there does not seem to be any way to configure it.

An example would be only show me exact clones of 5 lines or more.

Right now it gives Exact, Strong, Medium and Weak matches and it seems like they are for 10 lines or more. If I could configure this it would help work through the clones and it would find me those small methods that I am sure have been cut and pasted over the years.

UPDATE
Here is the notes from the documentation for the Release Preview version about how to configure the ability to exclude generated files

To exclude files generated by T4 templates from code clone analysis

  1. Place the templates in a sub directory of the Visual Studio project. Name it, for example, GeneratedFiles.

  2. Add a new text file to the project, and change its name and extension to t4Exclusions.codeclonesettings

  3. Change the content of the file as follows:

<CodeCloneSettings> <Exclusions> <File>GeneratedFiles*.cs</File> </Exclusions> </CodeCloneSettings>

UPDATE – 08/27/2012
I found this in the Code Clone documentation, it was not there in the earlier versions. It is one way to find clones of less than 10 lines long.

To find clones of a particular code fragment

1.
Highlight a fragment of code within a method or a get/set definition.

Note – You can find clones of statements, but not declarations such as field, method, or property signatures.

2.
On the shortcut menu for the fragment, choose Find matching clones in solution.

Use this method when you want to know if there is a similar method or fragment already in existence in your solution.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T06:35:19+00:00Added an answer on May 31, 2026 at 6:35 am

    From the documentation:

    Clones that are less than 10 statements long are not discovered by this command.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This sounds like a really simple question, but I am new to PHP. If
I'm new to jQuery and really liking it. I'd like to know if there's
I really like the visual effect where a new element seems to push an
Hi I'm new to Linux and I really like the idea of writing and
I've been looking at the new features in C++11 and it really looks like
im really new to linq-to-SQL so this may sound like a really dumb question,
First of all, I'm really new to the MVC Asp.Net ideology. I would like
I really like the magento structure but finding things is very hard ;) My
Redis really seems like a great product with the built in replication and the
I'm relatively new to SSRS 2005. I've built simple reports, and spreadsheets but I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.