You can save much time by using regular expressions in the Replace dialog of Visual Studio Code editor. The captured groups can be recalled as $1, $2 etc in the replacement field of the same dialog.