首页 > 文章列表 > 使用vscode将snake_case转换为camelCase

使用vscode将snake_case转换为camelCase

417 2024-07-18

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

来源:https://dev.to/schirrel/converting-snakecase-to-camelcase-with-vscode-ja2

本类最新

查看更多