Shortcut to quickly create / modify a string in Android Studio without using strings.xml?

I have searched the internet for how to change or create a string in Android Studio, but I couldn't find any information about shortcuts.

I just want to change @string/app_name

from Basic App

to My app

, eg.

I know I can manually navigate to this for this strings.xml

, but is there a faster method using a shortcut?

+3


source to share


2 answers


In Android Studio

  • to rename the line or to file

WINDOWS Ctrl+F6

MAC fn+ Shift+F6



  1. "extract resource string" to create a new line under file resources / string

WINDOWS Alt+Enter

MAC Alt+Enter

I also encourage you guys to see this video which shows some other trick you can use okay to speed up your programming.

+7


source


Using Mac 10.5+ keyboard shortcuts, highlighting a symbol (e.g. method, resource link) and pressing Command+ Bwill take you directly to where that symbol is defined.



On Windows it is Ctrl+ B.

+2


source







All Articles