tony gil
tony gil

Reputation: 9554

Android Studio shortcut end line with semicolon

What is the shortcut to end line with a semicolon in Android Studio?

enter image description here

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

Answers (1)

Nikos Hidalgo
Nikos Hidalgo

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

Related Questions