Vscode-cpptools: Add auto-complete support for headers

Created on 6 Jun 2017  路  8Comments  路  Source: microsoft/vscode-cpptools

ref: https://code.visualstudio.com/docs/languages/cpp#_getting-started

Why it can't auto-complete #include headers or intellisense the headers in other word , even I config the c_cpp_properties.json.
Can it intellisense the headers of the PATH?

Thx in advence!

Feature Request Language Service fixed (release pending)

All 8 comments

We don't have support for this yet.

For the longest time I was wondering why my autocomplete wasn't working. Makes sense now.

(PS. Hi Bob -AY)

Is this a planned addition? No details in the milestone/assignee field.

@azydevelopment It's not something we're planning on adding in the near term.

A preview of this feature is available in the insiders release

This is implemented in 0.17.0.

Intellisense is still unable to autocomplete the #include for custom includePath, e.g. "/usr/local/include".

This feature is provided by the extension "ajshort.include-autocomplete", but it can only use the includePath in "c_cpp_properties.json" instead of the "C_Cpp.default.includePath" in the user settings.

Could you please add this feature? It would be quite convenient if Intellisense can do this.

@joueurh This is supposed to work. Can you file a new issue with more repro info? You can enable logging to see if the "/usr/local/include" path is being added to your includePath.

image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ismadelgad11 picture ismadelgad11  路  3Comments

arl picture arl  路  3Comments

DemoCrazer picture DemoCrazer  路  3Comments

wdc596933938 picture wdc596933938  路  3Comments

vicatcu picture vicatcu  路  3Comments