Android Studio Productivity Tips
Android Studio Productivity Tips
In this article you’ll learn about some of the most helpful and productive settings
within Android Studio!
Open in app
7
Search
It might be helpful because we know it’s a long-to-int conversion and the result.
Now, we could reuse it somewhere.
This means you can enable/disable it on the fly, depending on the code you’re trying
to analyse.
2. Implicit receivers and parameters inlay hints
We immediately both know the type of internalVariable and that doSomething takes
in Int as input. This might not seem like a big deal, but it can be a lifesaver in
bigger classes and functions.
This means you can enable/disable it on the fly, depending on the code you’re trying
to analyse.
Enabling both 1 and 2 might be overwhelming, so it’s best to see which you should
turn on for yourself.
3. Plugins
It would be best to use some plugins as shortcuts for repetitive tasks. I’ve already
covered these in detail:
2. ADB Idea
4. Key Promoter X
5. IdeaVim
4. Live Templates
When working with code, you’ll find yourself repeating similar actions repeatedly.
Maybe you need to add some boilerplate to keep up with clean architecture or have
a coding style. With this, you’ll write your code much, much faster!
An example of how you can show Toast using a live template(it’s bundled within
Android Studio from the start):
5. File Templates
The idea is similar to live templates, except here, you’ll create a file or a group of
files with multiple things in common. You’re able to swap parts of the names, etc.
1 fun thanksForReading() {
2 if (learnedSomething) {
3 followForMoreContent()
4 clap()
5 } else {
6 commentHowToImprove()
7 }
8 }
Follow
Published in ProAndroidDev
69K Followers · Last published 16 hours ago
The latest posts from Android Professionals and Google Developer Experts.
Follow
Responses (4)
Respond
Michal Ankiersztajn
Jan 13 55 1
In ProAndroidDev by Jaewoong Eum
Feb 7 308
The Elephant in the Room for Android Devs: Jetpack Compose and Edge-
to-Edge on Android 15
How Android 15’s Edge-to-Edge Feature Impacts Jetpack Compose Development
Jan 17 281 2
Michal Ankiersztajn
Jan 12 76 2
Vineet Nigam
Lists
Staff picks
815 stories · 1626 saves
Ranjeet
Feb 1 17
In Level Up Coding by Jacob Bennett
Haris Weitani
Robert Jamison
Dec 7, 2024 47 2