c++ - Visual Studio 2019 C++ CodeLens

标签 c++ visual-studio-2019 codelens

有没有办法为 C++ 启用 CodeLens?通过扩展或 native VS 设置。

我正在专门讨论 C# 的这个功能

enter image description here

最佳答案

https://devblogs.microsoft.com/cppblog/announcing-codelens-for-c-unit-testing/ https://developercommunity.visualstudio.com/idea/351131/codelens-for-c.html

这是我能找到的有关此事的所有官方信息。看起来他们在 C++17 中添加了它,但是,它专注于单元测试。

关于c++ - Visual Studio 2019 C++ CodeLens,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60009784/

相关文章:

c++ - 将 int 转换为 char* 时出现奇怪的输出

c++ - 生成导出包含 ATL::CString 成员的类的 DLL 时出现警告 C4251

git - 是否无法将文件更改与 Visual Studio 2019 中的特定提交进行比较?

visual-studio - 在 Visual Studio 2019 中未发现单元测试

c# - Visual Studio 2015 方法信息

javascript - 在 VSCode 中使用 CodeLens for JavaScript

c++ - 将派生类实例作为 void* 传递给 C++ 中的通用回调

c++ - 在 Visual Studio Community 2019 中生成包含文件的图表

intellij-idea - IntelliJ IDEA中的CodeLens样式上下文信息

c++ - 如何使用特定版本的 zlib 在 ubuntu 上构建 openssl?