admin管理员组文章数量:1122846
I am working on Visual Studio Code in a codebase with custom classes and when variables are declared using auto, my autocomplete will not work. Here is an example for a function returning a smart pointer to a custom class.
When using auto, I get "No suggestions"
If I manually declare the type, it works fine.
Is this a known issue? something I can try? Thank you.
I am working on Visual Studio Code in a codebase with custom classes and when variables are declared using auto, my autocomplete will not work. Here is an example for a function returning a smart pointer to a custom class.
When using auto, I get "No suggestions"
If I manually declare the type, it works fine.
Is this a known issue? something I can try? Thank you.
Share Improve this question edited Nov 21, 2024 at 12:29 Mike mik asked Nov 21, 2024 at 12:25 Mike mikMike mik 919 bronze badges 3- visual studio code, sorry. edited. thank you. – Mike mik Commented Nov 21, 2024 at 12:28
- how have you configured intellisense? are you using the c++ plugin intellisense or clang? – Alan Birtles Commented Nov 21, 2024 at 12:41
- I use C/C++ Intellisense – Mike mik Commented Nov 21, 2024 at 12:53
1 Answer
Reset to default -2Yes, this is a known problem, unfortunately, when using the auto type, visual studio cannot determine the method fields and their types for a class, as far as I know, the only way to return tooltips is to explicitly indicate the type
版权声明:本文标题:Visual Studio code C++ autocomplete does not work for variables created with auto declarator - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736310902a1934545.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论