18

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...

1
  • 1
    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
2

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

0
22

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.

3
4

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

0

You can also add this command to userKeyBindings:

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.