Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Code completion in Android Studio : completion overwrites

There is this feature that Eclipse had.

Assuming you are summoning the code-completion in the middle of a word, the IDE it's giving you the possibility to configure if the suggested completion is just inserted (default Android Studio behavior) or it should overwrite the entire word/expression.

Is there a similar configuration in Android Studio?

like image 748
Adi B Avatar asked Apr 20 '15 09:04

Adi B


2 Answers

If, instead of pressing Enter to make your code completion selection, you use Tab then the code completion will overwrite what is at the caret, rather than just inserting it.

like image 171
Joel Avatar answered Oct 04 '22 15:10

Joel


Call a suggestion list

Mac
Control+Space

Windows
Ctrl+Space

Enter - to insert a suggestion
Tab - to overwrite a suggestion

like image 44
yoAlex5 Avatar answered Oct 04 '22 14:10

yoAlex5