1

Visual Studio Code does not show function overloads, as you can see on the screenshot. But as far as I know, Intellisense should show/suggest me all function overloads.

enter image description here

Just note that the code you see is the only file that is opened with vscode, there are no other includes.

What do I need to do so that function overloads will be displayed?

HolyBlackCat
  • 78,603
  • 9
  • 131
  • 207
  • c_cpp_properties.json configures Intellisense. With that said I am not sure if there is a setting in there or not. This is not something I have investigated in my usage of VSCode. VSCode documentation: [https://code.visualstudio.com/docs/cpp/c-cpp-properties-schema-reference](https://code.visualstudio.com/docs/cpp/c-cpp-properties-schema-reference) – drescherjm Jun 08 '22 at 16:57
  • The only thing I discovered is that when I change the insellisense engine from default to tag parser, then function overloads are being displayed. But when the tag parser engine is selected, syntax highlighting is not working properly anymore.. – GorgonzolaBYTE Jun 08 '22 at 17:11

1 Answers1

1

Intellisense is actually correct, you can't overload functions in C. Well, you technically can, but not the way you are doing it.

Paul
  • 13,042
  • 3
  • 41
  • 59