shirocheng
V2EX  ›  C++

VSCode 插件如何启用 C++14 ?

  •  
  •   shirocheng · Mar 9, 2020 · 5643 views
    This topic created in 2265 days ago, the information mentioned may be changed or developed.

    已在 C/C++插件设置中启用 C++14

    但插件的语法提示仍然报错: a space is required between consecutive right angle brackets (use '> >')

    版本

    VSCode: 1.42.1

    ms-vscode.cpptools: 0.27.0-insiders2

    Supplement 1  ·  Mar 9, 2020
    已解决,是插件冲突的原因,卸载几个不用的插件后正常工作。不过没找到冲突的是哪个插件。
    参考: https://github.com/Microsoft/vscode/issues/25204
    3 replies    2020-03-10 10:58:20 +08:00
    BSC5622
        1
    BSC5622  
       Mar 9, 2020
    这个语法特性 C11 就支持了 ,可能是你没装 C/C++ Intellisense 这个插件?
    shirocheng
        2
    shirocheng  
    OP
       Mar 9, 2020
    @BSC5622
    感谢回复,已解决,是插件冲突了,卸载几个不常用的插件后正常工作。
    andyzhshg
        3
    andyzhshg  
       Mar 10, 2020
    已经养成习惯了,即使 C++11 支持了,自己写代码时也不由自主的会加一个空格
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   938 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 22:05 · PVG 06:05 · LAX 15:05 · JFK 18:05
    ♥ Do have faith in what you're doing.