Android studio: Auto-completion not working with ctrl + space and working but lagging(suggestions are loading slowly with a loading icon) with ctrl + shift + space.
Tried all the following based on the previous similar question:
Also, suggestions are working with flutter project in Android studio but not with android project. Tried for solutions but didn't find any relevant doc.
Moreover, it used to show suggestions just after pressing '.' even without shortcuts. Updated some versions and the feature is disturbed. Does code completion depend on anything else?
Edit: suggestions are appearing but it's taking about 5 secs after pressing '.' or ctrl + space
if the autocomplete isn't working for you in Android Studio, just press File and uncheck the Power save mode, it should work fine after that. if power save mode is already unchecked then first check then uncheck them.
From the control panel, select the search engine you want to edit. Click Search features from the menu on the left and then click the Autocomplete tab. Click on the slider to set Enable autocomplete to On. It can take up to 2-4 days for autocompletions tailored to your search engine to start appearing.
By default, IntelliJ IDEA displays the code completion popup automatically as you type. If automatic completion is disabled, press Ctrl+Shift+Space or choose Code | Code Completion | Type-Matching from the main menu. If necessary, press Ctrl+Shift+Space once again.
Autocomplete of source code is also known as code completion. In a source code editor autocomplete is greatly simplified by the regular structure of the programming languages. There are usually only a limited number of words meaningful in the current context or namespace, such as names of variables and functions.
In my case it was showing only for exact text case but after below steps it was working as expected.
File->Settings-> Editor -> General -> Code Completion
.
Uncheck Match case checkbox if its checked.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With