Home  >  Article  >  Web Front-end  >  Converting snake_case to camelCase with vscode

Converting snake_case to camelCase with vscode

王林
王林Original
2024-07-19 12:49:11332browse

The screenshot of the finder tool from VSCode

  • Open the find/replace and click on the .*
  • In the first input use _([a-zA-Z])
  • In the second use U$1

The screenshot of the finder tool from VSCode with the inputs filled

Now just convert everything and be happy converting SQL/JSON to object variables/params or anything else.

Gif of the replace working on

The above is the detailed content of Converting snake_case to camelCase with vscode. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn