Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

niceseb's avatar

How to rename file in Subl with Emmet?

In video, Jeff used Emmet plugin which I installed but what short hand key to use to refactor file name? I saw it is SHIFT-CMD-K, but I it doesnt work for me to get Emmet Rename Tag?

EDIT: I do see Emmet Rename Tag, but selecting it, fails to open console in which to change name of file? Anyone sees the same thing?

Also double clicking the variable 'product' to 'plans' only changed that single instance without changing 'product' elsewhere? Then how to refactor in subl?

0 likes
2 replies
Jaytee's avatar

You mean renaming/creating files etc yes? That's not part of Emmet. Jeff usually uses this plugin here: https://github.com/skuroda/Sublime-AdvancedNewFile

As for the double clicking on a variable and changing multiple instances, that is part of Sublime. I can't remember the shortcut for that but you can find it on the sublime website.

thc1967's avatar

Double-clicking something in Sublime selects the word.

If you want to select all instances of that word after you've selected on instance of it, hit Alt-F3 (Windows). I don't know what the key is on Mac. If you don't necessarily want to select ALL instances of the word in your current buffer, then use Ctrl-D to add-in the next one, then Ctrl-D again for the next one, and so on, until you've selected all the instances you want.

Please or to participate in this conversation.