How to use Scratch Files in Android Studio?


Recently I came across a cool feature in Android Studio called scratch files. Just wanted to share it in Q and A Style.

What are scratch files and how to use them?


It’s a cool feature that lets you save your code that you want to look at later or just for reference.

See this post

Say you are creating a class and you decide to change a section of code. You can create a new scratch file by right clicking on the navigation bar and selection New, and then scratch file. Copy and save the code in the scratch file. This file is not a part of your android studio project.

You can find this file under scratches scope or Scratches folder under Scratches and Consoles folder in Project Scope.

Hope this will interest you guys and help speeding up development.

Answered By – mayank1513

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published