esy
esy

Reputation: 33

Jumping out of string keyboard shortcut for Android Studio

While we are typing a string is there any way, except pressing right arrow button, to go out of double quotation in Android studio or intellij-idea(for example a kind of shortcut or something)

If it inserts a comma and goes to next empty field it would be better also.

for example:

Log.i("stingLogName|") ==> Log.i("stingLogName", |)

(i've shown blinking cursor with |)

Upvotes: 0

Views: 151

Answers (1)

appersiano
appersiano

Reputation: 2770

You can achieve this in Android Studio (and of course in intelij) with Live Templates.

But you can move from field to field with Tab button (default) or if you want Space or Enter by selecting it in the Live Templates settings.

Usage:

  • Open Android Studio and place the cursor inside a statment (the OnCreate method for example)
  • Type logi and press Tab ( or type Ctrl+J and select an element from the list)

You can find more information here IntelliJ Live Templates

Hope it helps

Upvotes: 1

Related Questions