简体   繁体   English

将 TODO: 添加到 XAML 中,以便在 Visual Studio 的任务列表中显示

[英]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?有谁知道如何将 todo: items 添加到 XAML 中?

I am in the habit of using //TODO: in my code for things that I have to come back and fix up.我习惯于在我的代码中使用 //TODO: 来处理我必须回来修复的事情。 I can't seem to find out if this is possible to do in XAML?我似乎无法确定这是否可以在 XAML 中执行?

I would like to add things to my tasklist that point to XAML.我想将指向 XAML 的内容添加到我的任务列表中。 :( :(

Any idea's would be appreciated, thank you.任何想法将不胜感激,谢谢。

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.至少在 Visual Studio 2015 和 2017 中,可以创建一个“快捷方式”(VS Docs) ,它是代码中的书签,作为任务列表跟踪。 Shortcuts can be created in XAML code and are tracked too.快捷方式可以在 XAML 代码中创建并被跟踪。

I just create a one line XAML comment and put Shortcut on that line (Ctrl+K, Ctrl+H)我只是创建一行 XAML 注释并将快捷方式放在该行上(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.这个功能可能存在于较早的VS版本中,但我无法验证。

(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.) (是的,我知道这是一个老问题,但这是谷歌的第一个结果,所以我为其他可能会在这里结束的人添加了这个面包屑。)

Sorry to be the one with the bad news, but it is not possible yet.很抱歉成为那个坏消息的人,但这还不可能。 A ticket has already been created in Microsoft Connect for that feature to be implemented.已在 Microsoft Connect 中为要实施的该功能创建了票证 For now, you'll have to rely on your search.现在,您将不得不依靠您的搜索。

-D -D

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM