dimanche 22 février 2015

Searchable custom tags for Visual Studio 2010?


I want to tag certain parts of my code with various words, and then find them later.


For example, if I add these tags to a function like this...



// #variable #clipboard #select
public void myfunc() {
// Lots of code...
}


...then I want to be able to search for those tags, even in reverse order! For example, I might search for: "clipboard variable", and it would find the function. Alternatively, I might search for something where one term isn't in the tag list. For example, "select clipboard key". Although "key" isn't a tag, two of the words match, so Visual Studio would put it at (or near) the top of the search results.


How can I achieve this? It would GREATLY simplify hunting for old pieces of code.





Aucun commentaire:

Enregistrer un commentaire