feat(editor): support linked editing for matching HTML tags (#2993)

Editing the name in an opening or closing HTML tag renames the matching tag of the same element as you type, from the @lezer/html syntax tree, in one undoable transaction. Covers HTML, Vue, Angular templates, JSP, Django and Astro (ERB is token-based and stays out). Smart Keys gains Simultaneous <tag></tag> editing (on by default). Review fix: the Gutter Icons bookmarks group keeps its real gutter class.

Co-authored-by: Inf1mum <[email protected]>
Цей коміт міститься в:
Vadim LazukтаInf1mum authored and GitHub committed 2026-11-13 21:21:12 +08:00
1 джерело c076dedefc
коміт e6b88b2701
9 files changed
+378

No files matched your search

+1
Переглянути файл
@@ -701,6 +701,7 @@ const SMART_KEYS = editorPage({
{ t: "check", key: `${P}.smartKeys.pairQuotes`, label: "Insert pair quote" },
{ t: "check", key: `${P}.smartKeys.surroundSelection`, label: "Surround selection on typing quote or brace" },
{ t: "check", key: `${P}.smartKeys.tabOutOfPair`, label: "Jump outside closing bracket/quote with Tab" },
{ t: "check", key: `${P}.smartKeys.simultaneousTagEditing`, label: "Simultaneous <tag></tag> editing" },
{
t: "select",
key: `${P}.smartKeys.reformatOnPaste`,