Wicked Origami
banner
wo.dev
Wicked Origami
@wo.dev
UI/UX design engineering, development and consultancy. I have designed and built websites and interactive experiences for over 25 years. I love the interplay of artistic expression, elegant design and innovative technology.
Want to rename a prop in a component across your code in #VSCode?

Use regex search & replace:

Find:
(]*?)\bpropertyName(?=\s*=)

Replace:
$1NewPropertyName

Make sure ".*" (regex) is enabled in the 'Find' box.

#webdevelopment #code #react #web #regex
May 16, 2025 at 8:53 AM
Want to find all instances of a #component that is using a specific prop using #VSCode? This handy regular expression will do the job nicely.

Open the search panel with Ctrl+Shift+F (or Cmd+Shift+F on Mac). Make sure to use "Regular expression" mode and enter:

]*propName=
May 14, 2025 at 10:06 AM