visual-studio-codeintellij-15

VS Code Regex find and replace with lowercase, use \l or \L if possible


Is there a way to do a find and replace (regex) all uppercase characters in the matching strings with lowercase ones? Preferably in VS Code or IntelliJ I already have my regex ready.

Edit: To be clear I already know who to find the matches. But looking for that function to replace all uppercase matches with lowercase ones


Solution

  • If you want to modify only part of the matching text you have to do 1 step extra.

    If you press Ctrl + Shift + L in the Find dialog it selects the full matching text but you can't move the (multi) cursors and make a partial selection.

    After entering the regex, VSC will show you which parts will match the find.

    or

    Now you can move the (multi) cursors and make a partial selection and apply the needed transform.