VS Code tips — Using regex capture groups in find replace

Опубликовано: 02 Апрель 2020
на канале: Code 2020
25,329
470

Today's VS Code tip: regex groups in replace

When using regular expressions in find replace, you can reference capture groups in the replacement using $1, $2, and so on. Use $0 to reference the entire match

This can be a useful way to transform text