1
|
Code snippets are known as Live Templates in Android Studio
Browse the current Live Templates
Go to File > Settings > Editor > Live Templates. Then click on the different options to see what they do.
Here are some interesting ones:
The words surrounded by
$ signs are places where things will be filled in automatically from the context or where the user can tab through to fill them in.Use a Live Template
Just type in the abbreviation and tab through anything that you need to fill in.
Example:
and I'm given this
with the cursor located at the position I marked with the vertical line
| .Make you own Live Template
Just write the code, highlight it, and go to Tools > Save as Live Template.
Further Study |
التالي
« الموضوع السابق
« الموضوع السابق
السابق
الموضوع التالي »
الموضوع التالي »