Did you know about these features in Android Studio?

Bal sikandar
MindOrks
Published in
3 min readDec 14, 2019

Android Studio is really great with lots of amazing features which we don’t usually know of, Unless we’re really curious. In this article let’s talk about some features which can ease the pain that we get when it takes forever to build.

Photo by Max Nelson on Unsplash

Why do i leave Android Studio?

  • To View/Create Pull Request
  • To View formatted JSON
  • Create Gist or Create Repository
  • Do some scrap work

Above were some cases that used to force me to leave Android Studio and go to Chrome to do above tasks but not anymore.

Tl;DR

  • When i say Search i mean searching everywhere in Project using (Command + Shift + A) to search.
  • PR stands for Pull Request

View Pull Requests

Search “View Pull Request” and you’ll get all the open PRs. You can also see the closed Pull request by changing “state:open” to “state:close”. Right now we can’t submit review changes from here but otherwise it’s really cool.

Create Pull Request

To raise a PR from your feature branch to Base branch go to your feature branch and Search “Create Pull Request” and you’ll get a Dialog Like Below

Here Title by default is your current branch name which you can change. Base branch can also be changed from dropdown to any branch.

Dialog to Create PR in Android Studio

View formatted JSON in Android Studio

Create a scratch.json file then paste the json strings and press (Command + option + L) to format and voila it’s done. To know about Scratch files keep reading.

Create Gist or Create Repository

Search “Create Gist” to create a gist and similarly type “Create Repository” from within Android Studio to create Repos and follow the instructions.

Dialog to create a Gist file

Scratch Files in Android Studio (Doing some scrap work)

To create a scratch file press (Command + Shift + N) and you’ll get a dialog like below.

List of available languages for scratch file creation

Now select a language whose file you want to create. P.S. Above we created a “scratch.json” to format JSON.

Scratch files are super useful feature because it let’s you run code in isolation. Suppose you wan to run some kotlin code, Create a kotlin scratch file write code and run.

Here are some references of few more useful features

If you learned something new from this then do comment and also share something only you know with us.

Thanks for reading this article. Be sure to 👏 recommend this article if you found it helpful. It means a lot. Merry Christmas!!!

Also let’s connect on facebook, twitter, github and linkedin.

Clap, share if you like it and follow me for my next move.

--

--

Bal sikandar
MindOrks

Android developer @shuttl Ex @_okcredit. Blogger | Open source contributor https://about.me/balsikandar.