Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Rename Files in Android Studio

Is there a way to change name of a file in Android Studio projects? I come from Visual Studio and tried to select-change name of file. I already tried to F2 thats keyboard shortcut.

like image 959
Ahmet Arslan Avatar asked Feb 01 '15 23:02

Ahmet Arslan


People also ask

How do you rename multiple files on Android?

Find the location you want to rename the files on your Android smartphones. Now long-press the files and folders until you see a green tick icon>Do the same and tick all files you want to batch. Next, find the rename button on the top bar and click on it.

How do I rename a file programmatically?

File from = new File(directory, "currentFileName"); For safety, Use the File. renameTo() .


1 Answers

  • Select file in project explorer and press -> Shift + F6

  • Select file with right click + Refactor -> Rename

like image 78
Ahmet Arslan Avatar answered Sep 28 '22 05:09

Ahmet Arslan