Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to rename a file in Sublime Text 3?

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.

like image 472
orschiro Avatar asked Oct 01 '13 17:10

orschiro


People also ask

How do you rename a file name?

Open File Explorer by going to My Computer, or by pressing Windows Key + E on your keyboard. Find the file you want to rename, select it and select Rename on the ribbon (or press F2 on your keyboard). Type the new name you want the file to have and press Enter.

What is the method of rename () a file?

There are many ways to rename a file in Windows. The easiest way is by right-clicking on the file and selecting Rename. You can then type a new name for your file and press enter to finish renaming it. A quicker way to rename a file is by first selecting it by left clicking on it, then pressing the F2 key.


2 Answers

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

like image 56
starscream_disco_party Avatar answered Oct 08 '22 09:10

starscream_disco_party


Here is a package for Sublime Text 3 I wrote:

https://github.com/brianlow/FileRename

like image 32
Brian Low Avatar answered Oct 08 '22 09:10

Brian Low