Reputation: 21853
I wonder if there is a way that allows me to rename an opened file in Sublime Text 3?
Renaming would include that the currently opened file is created under a different name and deleted under the old name.
Upvotes: 35
Views: 44188
Reputation: 3006
There's way too many people suggesting plugins for something simple and built into Sublime's Package Manager.
In Sublime 3 there is a built in command within Package Manager. So:
Shift+(Ctrl|Cmd)+p -> Rename File
Upvotes: 61
Reputation: 924
Advantage of this package is you can also move and delete the file with rename.
Upvotes: 1
Reputation: 11811
Here is a package for Sublime Text 3 I wrote:
https://github.com/brianlow/FileRename
Upvotes: 30
Reputation: 17402
There's the SideBarEnhancements plugin that does this.
You can find it on GitHub here: https://github.com/titoBouzout/SideBarEnhancements/tree/st3
Upvotes: 14
Reputation: 19764
I recently added the functionality to AdvancedNewFile. It should rename the currently opened view, assuming you have the appropriate permissions at the source and destination locations. If you try it and run into an issue though, please create an issue on the github page.
Upvotes: 4