Skip to main content

Posts

How to do multi line search and replace with VS Code

... Multi line string search and replace - 1 "Menu -> Edit -> Replace" (Ctrl + H) Enable "Use Regular Expression" option which is available at right corner of the search input with ".*" icon Seperate multi line searc/replace string with "\n". For example To find Line 1 Line 2 Line 3 Replace with Line 11 Line 22 Line 33 Find string: Line 1\nLine 2\nLine 3\n Replace string: Line 11\nLine 22\nLine 31\n Multi line string search and replace - 2 "Menu -> Edit -> Replace in Files" (Ctrl + Shift + H)