1. Select your desired file in the Workspace pane.
2. Go to File --> Rename... from the top menu.
3. Enter the new name into the Rename item to field.
4. Click Rename to take effect.
If your new file name has been existing in the target folder, you will receive an error message.
Do not forget to undeploy the REST Services if they were deployed before renaming.