Autocomplete never works for me. On some of the #includes

Hello. I have VS2022. I notice when watching many videos that certain #inlcudes (eg. The onlinesubsystem one) don’t seem to be picked up in my Visual Studio.

If I make sure to type it all correctly (assuming I even know the said header file exists to be included), then it will build without any problem.

But i have always wondered why my copy of VS doesnt show these autocompletes.

Not a big problem but would be nice to know the actual reason.

This is a known issue with VS (not VS Code). It works if you use <> instead i.e. #include <... but that breaks things IIRC (might only be if it’s used in a header), it also goes against the convention so you’ll need to switch back to "" after completion which is a little annoying.

2 Likes

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms