How do I jump to the matching tag, when editing HTML in Emacs?

前端 未结 3 556
一生所求
一生所求 2021-01-31 15:57

Suppose I\'m editing a very long and messy HTML file. With my cursor at an open tag, is there a way to jump to its closing tag?

3条回答
  •  爱一瞬间的悲伤
    2021-01-31 16:21

    ...and if you're using web-mode C-c C-n will jump from an opening tag to the corresponding closing tag. The mode also has some other features (code folding, auto-closing HTML tags, ...) that might be worth taking a look at.

提交回复
热议问题