简体   繁体   English

查看 C++ 有关 Visual Studio 2022 中鼠标悬停的标准库文档

[英]View C++ standard library documentation on mousehover in Visual Studio 2022

I have a fresh install of Visual Studio 2022 Community Edition, with the toolsets "Desktop development with C++" and "Linux development with C++" installed.我全新安装了 Visual Studio 2022 Community Edition,其中安装了工具集“使用 C++ 进行桌面开发”和“使用 C++ 进行 Linux 开发”。 Now when I use some class/method from the standard library, I only see the method signature:现在,当我使用标准库中的某些类/方法时,我只看到方法签名:

在此处输入图像描述

What I'd like to see as well in that same popup is a short description/help of the method and the parameters.我还希望在同一个弹出窗口中看到的是方法和参数的简短描述/帮助。 Is this usually working out of the box?这通常是开箱即用的吗? If not, is there any plugin/extension for that functionality?如果没有,是否有该功能的任何插件/扩展? If I develop a console app for Linux (with the same VS installation), the documentation is showing correctly:如果我为 Linux 开发控制台应用程序(使用相同的 VS 安装),文档显示正确:

在此处输入图像描述

Looking into the header files of the standard libraries confirms that the Windows library just doesn't contain those doc comments.查看标准库的 header 文件确认 Windows 库不包含那些文档注释。 Any way to get them?有什么办法得到它们吗?

In order to display function information, you must make sure that the library you are using has comments.为了显示function信息,必须确保你使用的库有注释。 Although it is not fast enough, after jumping to the page of the class, manually selecting the method to view is a recommended way.虽然速度不够快,但是跳转到class的页面后,手动选择方式查看是推荐的方式。 I suggest you select the class and method you want to view, then press F1, it will automatically enter the corresponding MSDN.建议你select class 和你要查看的方法,然后按F1,会自动进入对应的MSDN。

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

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