Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Region and endregion
Message
De
10/06/2004 17:18:39
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00912277
Message ID:
00912450
Vues:
8
A trick that I recently discovered is TODO comments, starting with either,

   /// TODO

or just,

   // TODO

You can add them in yourself like the ones that VS generates for you in constructors and when you compile, they show up in your task list if you aren't filtering comments out, which I think VS does by default. A colon following TODO isn't necessary.

This is useful for making notes to yourself if you are temporarily commenting out code, need to implement something later, temporarily hardcode something in, or just want a reminder to yourself. Like other tasks, you can double-click on TODOs in the task list to be taken right to them, which is convenient. You can filter them out and only look at errors if you want to forget about them for a while and focus on errors.

When I use regions in C#, I include the region name after the endregion tag, i.e.,

   #region event handlers
...
#endregion event handlers

which makes it easier for me to see which #endregion I am looking at. VS just ignores the information after the #endregion, but it is clearer.
David S. Alexander
Kettley Publishing
20271 SW Birch Street, 2nd Floor
Newport Beach, CA 92660-1752
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform