Automatically update closing tag when changing open tag using Sublime Text 2 on Mac OS X

enter image description here

See the tags H2? How can I change them all to tags pwithout manually switching from line to line. cmd+dnot viable due to varying lengths of internal contents.

I found something called Emmet Plugin that I installed but cannot make it work. (Next steps and confusing docs http://docs.emmet.io/actions/go-to-pair/ ).

Thanks for the help.

- UPDATE -

Do not use regex. To clarify, I want something that will automatically update closing tagif I change open tag.

+3
source share
5

Alt + F3 . Emmet.

+6

Emmet, CTRL + SHIFT + ' .

.

Preferences -> Key Bindings -> User

:

[
    { "keys": ["ctrl+shift+;"], "command": "rename_tag" }
]
+2

regexp. Sublime Text 2 ( CTRL + H).

0

, . sublime2, sublime3 atom

( shift-alt )

  • enter image description here

Ctrl-D ( )

  • enter image description here

ALT-F3 ( h2 → p)

  • enter image description here

PS: for those who do not have tags in one line, they have everything, all content has a different number of lines. Method 1 will not work, and other methods will still work.

0
source

All Articles