No autocompletion for C/C++ goto labels
Bug type: Language Service
Describe the bug
The autocompletion engine doesn't seem to provide suggestions for goto statement labels in C/C++.
- OS and Version: MacOS Monterey, 12.1
- VS Code Version: 1.67.2
- C/C++ Extension Version: v1.9.8
- Other extensions you installed (and if the issue persists after disabling them): C/C++ Extension Pack
Steps to reproduce
- Open any C/C++ source file
- Write a dummy goto label anywhere in
main, e.g.test_label: - Write
goto test, and wait for autocompletion
Either nothing shows up, or unrelated variables / functions containing the string "test" are suggested.
Expected behavior
Autocomplete should suggest test_label to complete the goto statement
Screenshot

I've filed a feature request on VS at https://developercommunity.visualstudio.com/t/CC-IntelliSense-completion-for-goto-l/10058527 (shared component).
Hello @sean-mcmanus , are there any updates on this issue? If this is an intended behavior, may I ask what's the rationale behind it?
Thank you for your help!
@Unturned3 No update. It is the intended behavior because the completion for goto labels was never implemented. So it's debatable whether it should classify as a bug or enhancement/feature request.
I have also found this feature to be inexplicable missing. Maybe it's an ideological aversion to goto.
@Plashu It's not an ideological aversion to goto, although for C++ there are usually better choices.
Still no updates? I too would like autocompletion for goto labels 🤷♀️
+1