Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio - duplicate file

Is it possible to duplicate a file in Android Studio in the Project View?

When I right click on a file there I don't see it in any of the options.

If it's possible, how do you do it?

like image 383
Snowcrash Avatar asked May 28 '15 02:05

Snowcrash


2 Answers

I don't know any direct shortcut to do it, but you can surely go with Ctrl+C, Ctrl+V. It'll open dialog similar to the following one:

enter image description here

like image 115
aga Avatar answered Oct 21 '22 02:10

aga


To do this in one fewer step, select the file in project view, then press F5 or alternatively go to Refactor -> Copy. Works in Android Studio 3.3.2

like image 35
user1114 Avatar answered Oct 21 '22 02:10

user1114