Top 17 Plugins to Install on Android Studio

in #dev5 years ago (edited)

There are hundreds of plugins out-there for Android Studio and the number grows daily. This is mainly due to two reasons. The first is the fact that Android Studio is the industry accepted go-to IDE for creating Android apps. The second is Intellij IDEA, the platform upon which Android Studio is based, that allows for the development and easy installation of (mostly) useful plugins that are compatible with both IDEs. But which do you install, if at all?

(Disclaimer: This post was written originally by me for the blog of Codota, and you can read the "editor's edition" there.)

In our list of the top Android Studio plugins we included some must-have basic tools, as well as a number of little-known gems recommended by seasoned Android app devs in the Codota user community.

1. String Manipulation

Pretty much what the name suggests, this plugin can save you hours of tedious manual work. Among others, it offers style toggling (camelCase, kebab-lowercase, KEBAB-UPPERCASE, snake_case, SCREAMING_SNAKE_CASE, dot.case, words lowercase, Words Capitalized, PascalCase), Un/Escape, Encode/Decode, Increment/Decrement, natural order sorting, filtering and alignment.

2. Codota

A bit of a shameless plug(in). The Codota plugin uses machine learning to crowdsource code-completions from millions of Java programs, combined with your own unique context. Used by both beginner and senior Java developers, Codota makes development faster and helps eliminate those irritating errors that pop up in your code.

In addition to the plugin, Codota also offers an extensive library of commonly used Java code snippets to copy and paste where you need it.

3. CPU Usage Indicator

This simple UI plugin is more handy than one might initially think. As your code and app get more complex to compile and run, this will take a toll on your CPU. One of the most useful things about CPU Usage Indicator is the ability to generates a thread dump to show you what it is the IDE might be doing in the background to clog up the CPU.

 4. Rainbow Brackets

Nested brackets and parentheses have been a source of headaches for programmers as far back as this coder can remember (highschool). Many hours were lost looking for that missing bracket than is mucking up compilation. No more! Instead of sitting there for what seems like eternity trying to remember which number bracket you’re staring at? Add some color to your brackets and parentheses with the Rainbow Brackets plugin!

5. Project Lombok

Complex Java code for Android applications can often contain a lot of boilerplate code (constructors, getters, setters, etc). This can lead to lengthy, difficult to read, and tedious to maintain methods. Project Lombok is a Java library that plugs into your IDE and generates those boilerplate code, keeping your code short and readable.

6. Android Drawable Importer

If you’re going to be working with drawable in your Android development, and there’s a very good chance you are, this is the first plugin you need to get to know. 

To adapt to all Android screen sizes and resolutions, every Android project contains a drawable folder. If you’ve been blessed with a designer from heaven who provides the assets already in the correct folder with the correct naming, we’re jealous. Odds are, you’re not that blessed and have already found yourself manually renaming and moving the PNG files to the correct folders.

Unless you find this activity to have therapeutic value, Android Drawable Importer is the plugin that is going to save you a ton of time. It lets you import single assets to be adjusted for necessary sizes and resolutions, whole zip files to sort automatically to their folders, and batch-processing of multiple assets to integrate smoothly into the project.

7. Vector Drawable Thumbnails

To preview a vector drawable xml file you would normally need to build your app. To save you the trouble, Vector Drawable Thumbnails displays all Android vector drawables in the entire project with one click.

8. Android Drawable Preview Plugin

When you have a lot of drawable components in your project, remembering which is which can get hard. Wouldn’t it be nice if you had a quick preview of the image in your IDE? With Android Drawable Preview Plugin, you do.

This Android Studio plugin replaces the default icons with drawables previews inside the project view. Super-easy to access, but not an excuse to use ambiguous names for the drawable assets. Keep it descriptive, always.

9. Name That Color

Let me start by busting a myth. Not all women can tell the difference between turquoise and teal, or eggplant and plum. The very much female writer of these lines is one such example. And I am not even color-blind.The existence and popularity of this plugin indicate that most developers don’t have that magical color-recognition skill either, so I am in good company.

The Name That Color plugin will name the color you have in your clipboard directly inside your color resource file in Android Studio, and give the name of the closest matching color. No more “lighter_light_pink” in your xml.

10. bundletool

bundletool is the underlying tool that Gradle, Android Studio, and Google Play use to build an Android App Bundle or convert an app bundle into the various APKs that are deployed to devices. This tool by Google is a must-have for more efficient APK packages.

11. Butterknife Zelezny

Android ButterKnife Zelezny is an Android Studio Plugin for generating ButterKnife injections from selected layout XMLs in activities, fragments or adapters.

12. Android Input

Android Input is a fairly simple but useful Android Studio plugin that allows to easily type text directly into your Android device or emulator. It remembers the last used device and last text entered.

13. ADB Idea

This plugin for both Intellij IDEA and Android Studio adds a number of useful shortcuts to various ADB tool commands directly in your IDE. While this seems like a small addition, developers say ADB Idea can speed up development and debugging of Android apps.

14. adb-enhanced

Dubbing itself “a Swiss-army knife for Android testing and development”, adb-enhanced is a command-line interface to trigger various scenarios. It lets you play around with many potentially buggy app behaviors like screen rotation, battery saver mode, data saver mode, doze mode, and permission granting/revocation.

15. ADB WIFI

This plugin simplifies connecting the device to the ADB through WiFi for debugging. Like many other small but handy plugins, this one is simply a shortcut to a series of commands you can execute in the command line. But why not be comfortable?

16. Here there be dragons

Here be dragons is an Intellij/Android Studio plugin that lets you annotate your impure Java methods with the @SideEffect annotation and shows a little dragon icon in the gutter when you call them.

 In addition to visually isolating impure functions, this plugin is just too cute not to include in our list. Because dragons.

17. Power Mode 2

You know your code is epic. On some particularly long hyper-caffeinated coding sessions, you can feel your fingers spitting fire and shaking the world. You are a development God, and as such, deserve to code like one.

One last thing…

Before you go ahead and batch-install all the plugins from the list, you should remember that more plugins usually means a slower IDE. Consider your coding habits and see what plugins will shave off time-consuming tasks without adding unnecessary weight to Android Studio.

[This article was originally posted in full on the Codota blog]

Sort:  

Let me comment on Project Lombok since I don't like it so much :)

Project Lombok is first of all a tool that introduces changes to Java's syntax and makes certain assumptions that require a plugin to understand it. The outcome is no longer Java code - it's something that can be built to become Java ByteCode with use of additional tools. I am not against introducing such features as part of Java's syntax but I am against making such alterations and still calling it Java. some of the features are now part of Java 9/10/11/12 and then it's OK as vanilla Java. I would also be OK if someone called it lombok and called the files XYZ.lom and allowed them to get build with mvn/Gradle, but when I see java files I expect them to be handled by any Java handling tool out of the box and Lombok is not that.

People complain about the boilerplate code as if it was the only thing they wrote in a programming language.

Great list, sadly I'm not an app developer, I just use the ADB to root things or change a few other.

I want something like the Power Mode 2 for writting on Steem.

I want something like the Power Mode 2 for writting on Steem.

LOL YES!

Coin Marketplace

STEEM 0.28
TRX 0.11
JST 0.034
BTC 66137.63
ETH 3161.38
USDT 1.00
SBD 4.13