Skip to content

Instantly share code, notes, and snippets.

@voskobovich
Last active April 18, 2023 14:40
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save voskobovich/58a1e0ac9ca44b891f31a0b4433be49b to your computer and use it in GitHub Desktop.
Save voskobovich/58a1e0ac9ca44b891f31a0b4433be49b to your computer and use it in GitHub Desktop.
Replace underscore variables to camelCase in PHP Storm
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!
@lelledaniele
Copy link

Hi @voskobovich,

Ii now that is 2018 :), I found that
Find (\w)_(\w)
Replace $1\u$2
might be better

Thanks,
Lelle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment