使用vscode将snake_case转换为camelCase

admin 阅读:51 2024-07-19

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

声明

1、部分文章来源于网络,仅作为参考。
2、如果网站中图片和文字侵犯了您的版权,请联系1943759704@qq.com处理!