首页  >  文章  >  web前端  >  使用vscode将snake_case转换为camelCase

使用vscode将snake_case转换为camelCase

王林
王林原创
2024-07-19 12:49:11335浏览

The screenshot of the finder tool from VSCode

  • 打开查找/替换并单击 .*
  • 在第一个输入中使用 _([a-zA-Z])
  • 第二次使用U$1

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

现在只需转换所有内容,并乐意将 SQL/JSON 转换为对象变量/参数或其他任何内容。

Gif of the replace working on

以上是使用vscode将snake_case转换为camelCase的详细内容。更多信息请关注PHP中文网其他相关文章!

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn