I looked at this problem when I wrote SnipAssist (PineTreeJoe.com). The problem with most code reuse is having it but not finding it. To solve this problem, I used three parts for a snippet. An administrative part, a description and the actual text to reuse. All three parts can be searched together or separately. The search returns a list of snippets. As libraries get larger, the descriptive part gets more important.
F
Florida Joe
@Florida Joe