Visual Studio 2022 Intellisense XML文档开始失败

发布于 2025-02-13 21:04:53 字数 929 浏览 0 评论 0原文

我一直在Visual Studio 2022中从事一个长期且令人费解的C ++项目,因此我一直在确保对大多数功能的XML文档摘要进行评论,并一直在使用XML文档摘要。

这些摘要在编写函数时应该显示在Intellisense中,然后在该参数的位置时应显示参数摘要。

直到今天,一切都很好,它总是很芬兰,但大多是奏效的。但是,今天一切都停止了,所以我尝试按照过去帖子的一些建议,打开或关闭XML文件的生成,C ++的参数信息以及重新启动Visual Studio。什么都没有修复。

我设法找到了我的代码的一个随机部分,其中摘要出于某种原因出现,但即使在那里,它们也是错误的。

有人知道有任何解决此问题的方法吗?我真的需要这些摘要。

编辑: 这是我的C ++ Intellisense设置的屏幕截图

I've been working on a long and convoluted C++ project in Visual Studio 2022, so I've been making sure to comment as much as possible and have been using the XML documentation summaries for most every function.

These summaries are supposed to show up in IntelliSense when writing the function, and then the parameter summaries should show up when in the spot for that parameter.

Up until today everything had been working pretty much fine, it was always finnicky, but mostly it worked. Today however it all stopped showing up, so I tried following some recommendations from past posts, turning on or off the generation of an XML file, parameter information for C++, and restarting Visual Studio. Nothing has fixed it.

I have managed to find a random portion of my code in which summaries show up for some reason, but even there they're the wrong ones.

A function with a clearly visible summary above it, which doesn't show the summary

A function with a clearly visible summary above it, but which shows a completely different summary

Does anyone know of any way to fix this issue? I really need these summaries.

EDIT:
Here's a screenshot of my C++ Intellisense settings
My C++ Intellisense settings, they should all be on their default values

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一页 2025-02-20 21:04:53

您可以在工具中检查设置>选项>文本编辑器> c/c ++>高级Intellisense:

如果它不起作用,则可以尝试在工具下重置所有设置>导入和导出设置

You can check settings in Tools > Options >Text Editor >C/C++ > Advanced > Intellisense:
enter image description here
If it doesn’t work you can try to Reset all settings under Tools > Import and Export Settings

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文