volvo007
V2EX  ›  问与答

Ventura vscode 下 C++ 代码不能补全了

  •  
  •   volvo007 · Nov 30, 2022 · 2030 views
    This topic created in 1337 days ago, the information mentioned may be changed or developed.
    m1 芯片 Mac ,Ventura 系统。最近一直写 cpp 的时候代码不能补全了,安装了 C/C++ 插件。IntelliCode 这个会影响吗?我看这个只针对 py, java, js. 此外还有 Cmake 这个插件,但这个好像不能移除吧

    尝试了网上各种方法,比如修改项目下的 `.vscode/c_cpp_properties.json` 文件,不过好像也没什么用

    有大佬有头绪的吗,先谢过了
    2 replies    2022-12-01 01:02:10 +08:00
    WildCat
        1
    WildCat  
       Nov 30, 2022
    volvo007
        2
    volvo007  
    OP
       Dec 1, 2022
    是个 bug, 将 settings.json 当中的

    "C_Cpp.intelliSenseEngine": "Default",

    由 Default 改为 Tag Parser 即可…… 简直莫名其妙

    昨晚找了几个小时……
    今天半小时找到了……

    https://stackoverflow.com/questions/44094817/why-is-visual-studio-code-telling-me-that-cout-is-not-a-member-of-std-namespace
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   941 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 20:17 · PVG 04:17 · LAX 13:17 · JFK 16:17
    ♥ Do have faith in what you're doing.