阻止 VB 显示 xml 注释预览
当您在 C# 中创建 XML 注释并将其折叠时,您只能看到:
<Summary>...
但在 VB 中,您可能会看到,
Initializes the fubble to the watzer. This is actually the second line.
在尝试调试类时,在代码上放置该行可能会引入大量不必要的噪音。有没有办法关闭VB的xml注释预览?
When you create an XML comment in C# and collapse it you only see:
<Summary>...
But in VB you could potentially see
Initializes the fubble to the watzer. This is actually the second line.
Having that line over your code can introduce lots of unwanted noise when trying to debug a class. Is there any way to turn off xml comment previews for VB?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
取消选中 VB.NET 项目的“编译”选项卡上的“生成 XML 文档文件”即可完成此操作。
如果您想构建 XML 注释,请记住在完成后再次打开此功能。然而,关闭此选项将提高 Visual Studio 的性能。
Unchecking the
Generate XML documentation file
on the Compile tab for the VB.NET project should do it.Remember to turn this back on again when you are finished if you want to have your XML comments built. However leaving this off will improve Visual Studio performance.
怎么样:我的 VS“编译”选项卡没有“生成 XML 文档”复选框或任何地方。就在几周前,我的评论突然停止编译/输出。尽管这只适用于少数项目。所有新项目都可以毫无问题地添加和保存评论,但是......
我认为所有这些“次要”和“主要”问题都来自微软近年来采取的方法,其中一些“选项”由另一个“选项”控制' 打开和关闭第一个选项,同时更改第一个“选项”时打开另一个第三个“选项”;哦,是的,不要忘记:确保以正确的方式和格式提供凭据,并关闭第一个和第三个选项。复杂的?让我们根据您的(IDE)使用体验来为您做出决定!...
...
...或者类似的东西
How about this: My VS 'Compile' tab does not have 'Generate XML documentation' checkbox or wherever. My comments suddenly stop being compiled/output just few weeks ago. Though this is true for few projects only. All new projects have no problem adding and saving comments, HOWEVER...
I think all this kind of "minor" and "major" problems come from the approach that MS took in recent years where some 'Options' are controlled by another 'Options' to turn the 1st option On and Off having another, 3rd 'Option', ON while changing the 1st 'Option'; oh ya, don't forget: make sure credentials are given in proper way and format, having 1st and 3rd options OFF. Complicated? Let as make a decision for you based on your (IDE) usage experience!...
...
...Or something similar