Vscode-cpptools: Header autocomplete and header/source switch for "*.cu" "*.cuh" files

Created on 29 Oct 2019  路  2Comments  路  Source: microsoft/vscode-cpptools

Hi, I'm developing in Cuda right now and just adding *.cu and *.cuh to files.associations in settings works for syntax parsing.
However, when I try to autocomplete #include <Header.cuh>, it doesn't show files with .cuh/.cu extensions.
Also switching between .cuh/.cu as header/source doesn't work.

Is there any setting that can control this?

Feature Request Auto-complete Switch HeadeSource Language Service more votes needed

Most helpful comment

Unfortunately, the types are currently hardcoded. We might need to add some setting to indicate which files are headers versus source files in addition to just files.associations. The switch header source is being tracking with https://github.com/microsoft/vscode-cpptools/issues/3199 , but we can use this issue to track the completion.

It might just be easier to add those types to our hardcoded list.

All 2 comments

Unfortunately, the types are currently hardcoded. We might need to add some setting to indicate which files are headers versus source files in addition to just files.associations. The switch header source is being tracking with https://github.com/microsoft/vscode-cpptools/issues/3199 , but we can use this issue to track the completion.

It might just be easier to add those types to our hardcoded list.

This feature request is being closed due to insufficient upvotes. When enough upvotes are received, this issue will be eligible for our backlog.

Was this page helpful?
0 / 5 - 0 ratings