可能在aspx / ascx文件中有Visual Studio TODO注释出现在任务列表中? [英] Possible to have Visual Studio TODO comments in aspx/ascx files appear in task list?

查看:135
本文介绍了可能在aspx / ascx文件中有Visual Studio TODO注释出现在任务列表中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们使用visual studio 2008开发asp.net webforms。对于多语言支持,我们翻译所有的文本。然而,在设计时,我们通常只是输入英语文本,并回来以后翻译(否则中断工作流)。

We develop asp.net webforms using visual studio 2008. For multilingual support, we translate all our text. However, when designing, we usually just enter the english text and come back to translation later (it interrupts flow of work otherwise).

我在选项中添加了ToTranslate标签。在C#代码中添加 // ToTranslate:something 会将该条目正确添加到任务列表中。我还没有找到如何做相同的aspx和ascx文件(我们的大多数用户文本生活)。

I've added a "ToTranslate" tag in the options. Adding //ToTranslate: something in C# code correctly adds the entry to the Task List. I haven't however figured out how to do the same for aspx and ascx files (where most of our user text lives).

插入< ;% - // ToTranslate:something - %> <% - ToTranslate:something-%>

任何想法?

推荐答案

如果你把分隔符<%和%>放在一行就可以工作得很好。我做的是这样:去工具菜单,然后单击选项,然后在环境 - >任务列表添加一个新的ToTranslate令牌。单击确定接受更改。回到ASPX页面我添加了自己的行上的注释和代码分隔符自己。请参阅附加的屏幕捕获。

It seems to me that it works fine if you put the delimiters <% and %> on a line by themselves. What I did was this: go to Tools menu and click on Options, then under Environment -> Task List add a new ToTranslate token. Click OK to accept the change. Back on the ASPX page I added the comments on a line by themselves and the code delimiters on lines by themselves. See attached screen capture.

这篇关于可能在aspx / ascx文件中有Visual Studio TODO注释出现在任务列表中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆