'Android Studio IDE auto-complete: turn off newline / carriage return
When performing auto-complete on a line of code in Android Studio, in a Dart file, a carriage return / newline is added after completing the current line.
Is there a way to turn off / prevent the newline when auto-completing?
Solution 1:[1]
Updated:
Ctrl + Shift + Enter will complete the current expression, add a semicolon and move to the next line without an extra newline.
Previous:
Use the hotkey/keymap combination for Show Context Actions (on Windows alt + Enter by default) will show a Context Menu on the line with a suggestion for completing/ending the current line.
If the suggested Context Action is "insert ;" it will auto-complete the line without a carriage return / new line.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
