How to use Scratch Files in Android Studio?

mayank1513 :

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?

mayank1513 :

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.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=445275&siteId=1