How to prevent Android Studio auto-complete by deleting a neighboring token

If I edit an existing line of code in Android Studio and accept autocomplete, the next token to the right of the cursor gets:

enter image description here

Is there a way to disable this behavior while saving as autocomplete plus the rest of the line?

+6
source share
1 answer

If you press "Enter", it just inserts into autocomplete, if you press "Tab", it will replace it. I would suggest that you always press Tab, so try Enter and see if you like how it works.

Complete Documentation from JetBrains

Here TL; DR;

  • Use Enter to insert the selected row at the insertion point.
  • Use the tab to replace the row next to the carriage with the selected one.
  • Use Ctrl + Shift + Enter to make syntactically correct code construction (brackets in brackets, add missing curly braces and semicolons, etc.).
+8
source

All Articles