If I’m editing an existing line of code in Android Studio, and accept an autocomplete, the following token to the right of the cursor gets eaten:
Is there a way to disable this behaviour, keeping both the autocomplete plus the rest of the line?
If you press “Enter” it just pastes in the autocomplete, if you press “Tab” it replaces it. I would guess you are always pressing “Tab”, so try “Enter” and see if you like how that works.
Here’s the TLDR;
- Use Enter to insert the selected string at the insertion point.
- Use Tab to replace the string next to the caret with the selected one.
- Use Ctrl+Shift+Enter to make the current code construct syntactically correct (balance parentheses, add missing braces and semicolons, etc.)