How to add live template (code snippets) in Android Studio…

Live templates are so useful, and it is easy to add in Android Studio. I will show step by step with screenshots. Let’s go..

1- First step: Go to: File > Settings >Editor>Live Templates

2- Second Step: Click add button.

3-Third Step:Write an abbreviation and description for your self, i will give an example in next step. Then choose an expand form from right of the screen. This will be default tab, but you can change it if you want.

4-Fourth Step: Fill the blank areas.

5-Last Step: Now you can use your snippet … you have to write your abbreviation and than click tab on keyboard.

--

--

--

Android App Developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How I Learned to Stop Worrying and Love the Logs

Ownership and Accountability — A Software Engineer’s handbook

Configuring and aggregating queries on multiple data sources with Power BI and Power Query.

Named Entity Recognition using SpaCy (NER)

5 Underrated Apps for Programmers You Should Use Right Now

Turbo Stream and ActionCable

Bad-mouthers will continue their behavior for as long as it benefits them

Sustainability & Facility Management Performance

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Seref Bolat

Seref Bolat

Android App Developer

More from Medium

Novice Note: HMS Core Integration to Android Studio in Ubuntu 21.10

Get to Know The 10 Top Trending Libraries for Android Development

What is kotlin Koin? How to use Kotlin Koin in android?

Difference between activity and fragment android