File: Save As…
file.saveAs Save the current file under a new name.
How to run it
Open the command palette (M-x in the Emacs keymap) and search for File: Save As…, then press Enter. It also has a default keybinding:
| Emacs | C-xC-w |
| CUA | C-S-s |
| Sublime Text | C-S-s |
| VS Code | C-S-s |
| IntelliJ IDEA | C-S-s |