VS Code

Author: Published Updated

How do you search and replace with regex in VS Code?

VS Code's regex search (Shift+Cmd+F, then Opt+Cmd+R) handles patterns like matching content between angle brackets. This page collects the editor shortcuts and search tricks I use most often day to day.


Search between angle brackets

  • shift+cmd+f to open search
  • opt+cmd+r to enter regular expression search
  • enter <(.[^>]*)>

< Storybook Data Visualizations >