Last active
April 18, 2023 14:40
-
-
Save voskobovich/58a1e0ac9ca44b891f31a0b4433be49b to your computer and use it in GitHub Desktop.
Replace underscore variables to camelCase in PHP Storm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Open document | |
2. Crtl + R | |
3. Checked Regexp | |
4. Find \$(.+)(\w)_(\w) | |
5. Replace to \$$1$2\u$3 | |
6. Unchecked Regexp | |
7. Profit! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @voskobovich,
Ii now that is 2018 :), I found that
Find
(\w)_(\w)
Replace
$1\u$2
might be better
Thanks,
Lelle