Reputation: 9554
What is the shortcut to end line with a semicolon in Android Studio?
One could click End
and type the semicolon, but that would be a workaround.
I'm sure that there must a direct shortcut to end a line whichever the claret's position in said line, since Android Studio displays the offending un-ended line with a placeholder underlined in red.
Upvotes: 2
Views: 416
Reputation: 3756
With the cursor anywhere on the line at the end of which you want the semicolon, just press the following:
For Windows: ctrl
+ shift
+ enter
For Mac: cmd
+ shift
+ enter
Upvotes: 2