Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Eclipse: What's the easiest way to duplicate a class?

I am creating several classes that are similar to one I already have. Right now I right-click the .java file, then select "copy." After that, I right-click and select "paste." Then I proceed to modify the file. I do the same for its corresponding .xml layout file.

I was wondering if there is a smarter way to do this? Perhaps one with some added intelligence to automatically set up the new file(s) semi-automatically?

like image 271
gonzobrains Avatar asked Jul 16 '11 02:07

gonzobrains


1 Answers

Clicking on the file and pressing Ctrl-C will copy the file. Click on the folder and press Ctrl-V.

like image 105
John O'Connor Avatar answered Sep 27 '22 18:09

John O'Connor