visual-studiovisual-studio-2012

How can I add a note to a Visual Studio bookmark or line?


When I am in the middle of debugging I often find more than one area that can be improved (or fixed) and I like to mark them in such away that I can come back later and make the improvement.

Currently I add a bookmark to the line but this can't include any notes that can be used to remind me why the bookmark was there (you can change the name of the bookmark but this isn't enough). I suppose I really want to be able to add a TODO to the code while the code is running but although Edit and Continue is enabled it is not available in the ASP.NET WebForms (3.5) project.

Are there any Visual Studio features or extensions that will enable this?


Solution

  • Instead of enabling Edit and Continue then entering a TODO: into the source code, you can create a Task List Shortcut (key cord Ctrl + K, Ctrl + H).

    This adds an entry to the Shortcuts section of the Task List window. From there you can change the description of the task to remind you why you created it.