有没有办法在 Visual Studio 2010 中的 Intellisense 注释中加粗文本? [英] Is there a way to bold text in Intellisense comments in Visual Studio 2010?

查看:27
本文介绍了有没有办法在 Visual Studio 2010 中的 Intellisense 注释中加粗文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在 Intellisense 评论中加粗文本?

Is there a way to bold text in Intellisense comments?

我的想法:

/// <summary>      
/// <para><bold>Paramater1:</bold>: blah blah
...

推荐答案

我一直在研究如何做到这一点,但没有找到任何方法.而且很严重.

I've been looking at how to do this, and haven't found any way. And it's very aggravating.

基本上有两种智能感知:1) 在您输入时弹出的信息(显示重载和所有内容)和 2) 在您时弹出的工具提示>悬停已经写出来的东西.

There are essentially two kinds of intellisense: 1) the info that pops up as you're typing something out (shows overloads and everything) and 2) the tooltip that pops up when you hover over something that's already written out.

我没有发现任何东西会影响#2.(而且我想这无论如何都不是严格的智能感知,只是一个工具提示评论.不过,它确实显示了相同的信息......)

I haven't found anything that can affect #2. (And I suppose that isn't strictly intellisense anyway, just a tooltip comment. Though, it does show the same info...)

但是对于#1,您可以做一些事情来突出文字和内容.

But for #1 there are a couple things you can do to highlight words and stuff.

第一个是使用 <see cref="SomeActualCodeElementHere"/> 这将使您在引号中的任何内容显示为粗体(我认为它们也曾经是可点击的并且会您了解该代码元素的定义,但我不知道如何在 VS2013 中使其工作).

The first is using <see cref="SomeActualCodeElementHere" /> which will make whatever you put in the quotes to show as bold (I thought they also used to be clickable and would take you to the definition of that code element, but I can't figure out how to make that work in VS2013).

第二种是使用 <c>AnythingCanGoHere</c>,它使您放入的任何内容都显示为不同的颜色(蓝色?).对于<c>true</c><c>false</c>之类的东西很方便.

The second is using <c>AnythingCanGoHere</c> which makes whatever you put in there to show as a different color (blue?). Handy for like <c>true</c> and <c>false</c> and stuff.

请注意,使用 cref 时,代码元素必须能够在当前上下文中解析,否则不会突出显示文本.但是,使用 将突出显示/着色任何文本.

Note that when using cref the code element has to be able to be resolved in the current context, or it won't highlight the text. Using <c> however, will highlight/color any text.

最后一件事,如果您在外部使用您的文档,或者正在生成供其他开发人员使用的代码并生成 xml 注释文件,那么 <b> 标签被认为适用于一些工具.(在 Visual Studio 中,当您浏览引用带有 xml 注释文件的程序集时,不幸的是,VS 的行为仍然如上所述.)

One last thing, if you use your documentation externally, or are producing code to be consumed by other developers and are generating xml comment files, then the <b> tag is said to work for some tools. (In Visual Studio when you have a browse reference to an assembly that has an xml comment file with it, VS still behaves as described above, unfortunately.)

太晚了,但 Google 把我带到了这里,所以希望这可以帮助您或其他人.

Extremely late answer, but Google brought me here, so hopefully this can help either you or someone else out.

这篇关于有没有办法在 Visual Studio 2010 中的 Intellisense 注释中加粗文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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