How to use Paste from History feature in Android studio

When developing an Android app, you often copy and paste code. You may need to copy and paste numerous code blocks at times. Typically, you would copy and paste lines one by one. It’s significantly more difficult if you need to paste in many places (files). However, there is a better solution.

Meet Paste from History

You can access your clipboard history and quickly paste any of the recent items copied to the clipboard. Android Studio starts recording copied items to its clipboard history as soon as you start it and clears the history when you close it.

To use Paste from History,

1. Make a copy of whatever you wish to paste anywhere.

2. Go to the desired file.

3. Press Ctrl+Shift+V (or Edit -> Paste -> Paste from History) to open Paste from History windows

4. In the Choose Content to Paste dialog, you can choose one of the recent clipboard entries and preview it.

5. Click Paste to paste the desired entry in a corresponding way. 

Share with your friends

Leave a Reply

Your email address will not be published. Required fields are marked *