Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add TODO: into XAML so that is shows on my task list in visual studio

Does anyone know how to add todo: items into XAML?

I am in the habit of using //TODO: in my code for things that I have to come back and fix up. I can't seem to find out if this is possible to do in XAML?

I would like to add things to my tasklist that point to XAML. :(

Any idea's would be appreciated, thank you.

like image 366
Obbles Avatar asked Jun 09 '10 02:06

Obbles


People also ask

How do I show a todo in Visual Studio?

Visual Studio Tracks Your “// TODO” Comments From within Visual Studio Go to View -> Task List. This will display the Task List window and show you any area of your open Solution that has existing comments that start with // TODO . You can filter down to your Current Project, Current Document, or Open Documents.

How do I create a todo code in Visual Studio?

Double-clicking a TODO in the tree will open the file and put the cursor on the line containing the task. In open files, TODOs can also be highlighted for easier navigation. You can further customize the extension by specifying specific flags in VSCode settings, more details can be found at TODO Tree wiki page.

How do I add XAML files to Visual Studio 2019?

Just right click the project, choose Add -> Window and that will add a new xaml file along with its corresponding .

How do you add comments in XAML?

You can add comments to the XAML code that's in the MainWindow. xaml tab in the following ways: Enter <! -- before a comment and then add --> after the comment.


1 Answers

In Visual Studio 2015 and 2017 at least, one can create a "Shortcut" (VS Docs), which is a Bookmark in code that is tracked as Task by Task list. Shortcuts can be created in XAML code and are tracked too.

I just create a one line XAML comment and put Shortcut on that line (Ctrl+K, Ctrl+H)

<!-- TODO: Color buttons: Delete - red, Edit - yellow, New - green -->

This function may exist in earlier VS versions, but I can't verify.

(Yes, I know this is an old question, but it was a first result in Google for this, so I'm adding this breadcrumb for others that may end up here.)

like image 156
Riva Avatar answered Oct 20 '22 04:10

Riva