"If a worker wants to do his job well, he must first sharpen his tools." - Confucius, "The Analects of Confucius. Lu Linggong"
Front page > Programming > Converting snake_case to camelCase with vscode

Converting snake_case to camelCase with vscode

Published on 2024-08-01
Browse:559

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

Release Statement This article is reproduced at: https://dev.to/schirrel/converting-snakecase-to-camelcase-with-vscode-ja2?1 If there is any infringement, please contact [email protected] to delete it
Latest tutorial More>

Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.

Copyright© 2022 湘ICP备2022001581号-3