VS Code Search and Regex/Wrap matches in quotes

Surround found words using capture groups.

Section: Replace Cookbook

Wrap matches in quotes

regex
regex
Find: (\w+)
Replace: "$1"

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Replace Cookbook
Replace repeated spaces with one
Normalize spacing.
OpenIn sheetregexsame section
Convert key: value style to quoted keys
Useful when massaging JS-like objects into JSON-like keys.
OpenIn sheetregexsame section
Prefix lines during replace
Insert comment prefix at the beginning of lines.
OpenIn sheetregexsame section
Replace in current file
Search and replace in the active editor.
OpenIn sheettext1 tag match
Replace in files
Search and replace across the workspace.
OpenIn sheettext1 tag match
Collapse repeated blank lines
Reduce multiple blank lines to one.
OpenIn sheetregex1 tag match