简体   繁体   English

排除 <see cref=“class”> xmldoc引用是否出现在CodeLens中?

[英]Excluding <see cref=“class”> xmldoc references from showing up in CodeLens?

Is there a way to prevent CodeLens from picking up on class references made in xmldoc comments? 有没有办法阻止CodeLens获取xmldoc注释中的类引用?

I like that the cref tags make sure the spelling is correct, provide clickable links in the documentation, are picked up by refactoring etc., but I feel that it needlessly clutters up the codelens list of references. 我喜欢cref标签确保拼写正确,在文档中提供可点击的链接,通过重构等来获取,但我觉得它不必要地混淆了代码列表的引用。

Here is an image to illustrate what I mean: 这是一张图片来说明我的意思:

不必要的代码参考

Any ideas? 有任何想法吗? This is VS2017 Pro with the latest Resharper beta, but also applies to VS2015 Pro. 这是VS2017 Pro与最新的Resharper测试版,但也适用于VS2015 Pro。

As far as I know, there is no option to achieve your requirement. 据我所知,没有选择来达到你的要求。 Usually to configure or to turn CodeLens off and on, you can go to Tools, Options, Text Editor, All Languages, CodeLens. 通常要配置或关闭和打开CodeLens,您可以转到工具,选项,文本编辑器,所有语言,CodeLens。

Since it is still a reference of class 'EntityFrameworkContextTestConfiguration' even if in xml document, add into the CodeLens-Reference is accepted. 由于它仍然是类'EntityFrameworkContextTestConfiguration'的引用,即使在xml文档中,也会接受添加到CodeLens-Reference中。 For your idea, I reported a user voice to the Visual Studio Product Team and you can check this: https://visualstudio.uservoice.com/forums/121579-visual-studio-ide/suggestions/17960185-please-add-an-option-to-turn-off-codelens-referenc and vote it, then waiting for the response from the VS product team engineers. 为了您的想法,我向Visual Studio产品团队报告了用户语音,您可以查看: https//visualstudio.uservoice.com/forums/121579-visual-studio-ide/suggestions/17960185-please-add-an -option-to-off-off-codelens-referenc并投票,然后等待VS产品团队工程师的回复。

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

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