Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way (core or plugin) that a closing html tag name changes accordingly when renaming the opening one ? A behaviour similar to multi-selection...

share|improve this question
    
Are you looking for a way to change it, or is it happening you you and you don't know why? – soandos Oct 19 '12 at 12:58
up vote 2 down vote accepted

The Zen coding plugin has a command "select matching tag name" which selects the nearest opening and closing tags relative to the cursor.

share|improve this answer

The ZenCoding plugin has been discontinued, see the alternative: Emmet

(Super) + Shift + K // Rename tag shortcut

Also available via Package Control, under the same name.

share|improve this answer
6  
This seems have been changed to Super + Shift + K for OS X (see: github.com/sergeche/emmet-sublime/blob/…) – chibicode Jun 26 '14 at 4:25
    
Thanks for the solution chibicode, you should enter it as such. – Carles Alcolea Sep 13 '15 at 1:42
    
edited answer with the correct shortcut – Luciano Oct 21 '15 at 15:05
    
Thanks for the edit. – knownasilya Oct 21 '15 at 15:25

Use the Emmet plugin shortcut key to rename tag in your editor:

[Super + Shift + K] on mac //In OSX environment, super key = Command key.
[Ctrl + Shift + '] on windows

It worked perfectly I already tested with sublime text

share|improve this answer

You can also add this command to userKeyBindings:

{"keys": ["your key bind.."], "command": "rename_tag"} // like super+shift+k

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .