Is there "Save as" option in Android Studio file menu?

ivan.panasiuk picture ivan.panasiuk · Nov 3, 2015 · Viewed 8k times · Source

I have recently move from Eclipse to Android Studio. I could not find "File > Save as" options. Is there any alternative for this?

(Sometimes, I create new class or XML by creating new one from already existed content, and than do changes. In Eclipise I have been doing this by using "Save as" options from File menu)

Answer

frogatto picture frogatto · Nov 3, 2015

The easiest solution which I've used multiple times would be:

  • Right click on the original file in project hierarchy panel.
  • Choose Refactor
  • Choose Copy
  • Enter New Name and Destination Package

Shortcut: F5