我刚刚下载了 linux ubuntu 14.04 的 Visual Studio 代码。我创建了一个简单的 test.cpp 并在 vscode 中编写它并且智能感知不起作用。
下面是 test.cpp 中的代码:
struct test{
int a = 5;
}
int main(){
test t;
t.
}
当我写“t”时,没有智能感知告诉我 t 的成员。应该有的。
我使用命令“touch test.cpp”在 linux 终端中创建了 test.cpp 文件,然后我用 Visual Studio 代码打开了 test.cpp 并编写了代码。可以在这里看到截图:http: //i.stack.imgur.com/fLhSA.png
任何人都知道如何让智能感知在 linux 中为 vscode 工作?
原文由 skarl 发布,翻译遵循 CC BY-SA 4.0 许可协议
在撰写本文时, 支持的语言 表示 C++ 没有 IntelliSense。