How do you enable auto-complete functionality in Visual Studio C++ express edition?

后端 未结 10 835
有刺的猬
有刺的猬 2021-02-05 13:55

Please guide me, how do you enable autocomplete functionality in VS C++? By auto-complete, I mean, when I put a dot after control name, the editor should display a dropdown menu

相关标签:
10条回答
  • 2021-02-05 14:29

    Include the class that you are using Within your text file, then intelliSense will know where to look when you type within your text file. This works for me.

    So it’s important to check the Unreal API to see where the included class is so that you have the path to type on the include line. Hope that makes sense.

    0 讨论(0)
  • 2021-02-05 14:32

    Start writing, then just press CTRL+SPACE and there you go ...

    0 讨论(0)
  • 2021-02-05 14:33
    • Goto => Tools >> Options >> Text Editor >> C/C++ >> Advanced >> IntelliSense
    • Change => Member List Commit Aggressive to True
    0 讨论(0)
  • 2021-02-05 14:39

    When you press ctrl + space, look in the Status bar below.. It will display a message saying IntelliSense is unavailable for C++ / CLI, if it doesn't support it.. The message will look like this -

    0 讨论(0)
  • 2021-02-05 14:44

    It's enabled by default. Probably you just tried on an expression that failed to autocomplete.

    In case you deactivated it somehow... you can enable it in the Visual Studio settings. Just browse to the Editor settings, then to the subgroup C/C++ and activate it again... should read something like "List members automatically" or "Auto list members" (sorry, I have the german Visual Studio).

    Upon typing something like std::cout. a dropwdownlist with possible completitions should pop up.

    0 讨论(0)
  • 2021-02-05 14:47

    VS is kinda funny about C++ and IntelliSense. There are times it won't notice that it's supposed to be popping up something. This is due in no small part to the complexity of the language, and all the compiling (or at least parsing) that'd need to go on in order to make it better.

    If it doesn't work for you at all, and it used to, and you've checked the VS options, maybe this can help.

    0 讨论(0)
提交回复
热议问题