-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto-Completion (experimental) #606
Comments
Our extension currently disables |
I just started using this extension and also noticed that intellisense does not automatically give suggestions when I start typing. I either have to use "ctrl+space" or encounter one of the specified operations (".", "->",...). |
As I mentioned above, yes, we do plan to remove the temporary disabling of this setting. soon. |
is it possible to disable the completion triggered by . :: ->,when it's not OK to suggest the correct members of those, I used ycmd to make that work. if it's possible to disable completion triggered by those characters, it would be much better for me . |
@fxliang The only way to disable the . :: -> autocomplete is to change the C_Cpp.autocomplete setting to "Disabled". Are you asking for an additional setting that enables our autocomplete when Ctrl+Space is used, but disables the popup at . :: ->? |
@sean-mcmanus Sorry for my chinglish :( |
@sean-mcmanus yes, disable the popup at .::->. |
@fxliang We could enable disabling of the popup, but I don't know if the other autocomplete provider would kick in, because we're still registered as a general completion provider (such as when Ctrl+Space is used). How do you use ycmd? From the you-complete-me extension? If our tool is missing results when . :: -> are used then that is a bug we should fix (we have some known bugs), and we're also working on IntelliSense engine autocomplete which will give better results. |
@sean-mcmanus yes , I am using you-complete-me. |
@fxliang We're working to add more accurate IntelliSense-based autocomplete when trigger characters are used, so we don't believe a setting to disable it will be needed. For the next update, we're just removing the automatic setting of quickSuggestions to false (the original issue). |
Will these issues be resolved when the new C++ extension release is... released? :) Plus, I would really like to be able to disable all of the suggestions for functions and types in the Windows SDK (and more). I'm very un-interested in them for this project. Direct gif of buggy behaviour: |
@Srekel, the behavior you demonstrate in the gif is currently the expected behavior. The tag parser does not scan local variables or collapse duplicates into a single item in the suggestion list. The issues you list will be addressed when autocomplete suggestions are provided by the new IntelliSense engine. |
New intellisense engine - is that something that's coming in VS Code or an upcoming feature in this extension? Regarding my request to disable suggestions coming from "outside" the project, is that on the roadmap? Or is it something I can already do? Thanks for the reply! |
The new IntelliSense engine is a feature of this extension. It currently replaces the tag parser for quick info tooltips but is being updated to provide more features, such as autocomplete. The Windows SDK is included by default on Windows. If you open the command palette (CTL+SHIFT+P) and select "C/Cpp: Edit Configurations" a file called c_cpp_properties.json will be created and you can remove the paths you don't want to have included in your project. You may need to delete the old DB to remove the extra symbols - I don't think we've published a fix for that issue yet. On Windows, the DB should be under |
This was fixed in version 0.11.1. Please reopen if you continue to have this issue. |
There are no automatic code hints for variables that have already appeared in the current file。
The text was updated successfully, but these errors were encountered: