首页 > 解决方案 > VSCode (C++) - 查看包含的符号

问题描述

我正在寻找一种方法(可能是扩展名)来查看给定的包含语句使用了哪些符号。这将非常有用,尤其是查看哪些包含实际上是无用的。

我试过include-what-you-use了,但这不是我想要的,它没有与 VS Code 集成(扩展似乎被破坏了)。

有任何想法吗 ?

示例:

// a.h

class A {};
class B {};

// c.h
#include a.h    // some popup or smth to say only `A` is used

class C : public A {};

标签: c++visual-studio-code

解决方案


推荐阅读