Skip to content

c_cpp_properties.json not giving correct c++ library path under windows #21988

@mysterytony

Description

@mysterytony
  • VSCode Version: 1.10.1
  • OS Version: windows 10

Steps to Reproduce:

  1. create a .cpp file, write a #include statement, for example, #include <iostream>
  2. hover the mouse on the yellow lightbulb and generate c_cpp_properties.json
  3. the includePath property is not correct in my case. VSCode gives C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/include/* which in my case, the c++ library is under C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.10.24930\\include\\*

Perhaps need to detect which version of visual studio one has?

Metadata

Metadata

Assignees

No one assigned

    Labels

    *caused-by-extensionIssue identified to be caused by an extension

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions