Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio: Auto completion not working with ctrl + space

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:

  1. made sure power save mode is off.
  2. invalidated and restarted.
  3. made sure relevant checkboxes are checked in code completion settings.

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

like image 389
Hrudhay Avatar asked May 17 '18 06:05

Hrudhay


People also ask

Why is auto complete not working in Android Studio?

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.

How do you use auto completion?

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.

How to enable autofill in IntelliJ?

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.

What is auto code completion?

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.


1 Answers

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.

like image 55
Ravi Yadav Avatar answered Oct 19 '22 11:10

Ravi Yadav