”工欲善其事,必先利其器。“—孔子《论语.录灵公》
首页 > 编程 > 使用vscode将snake_case转换为camelCase

使用vscode将snake_case转换为camelCase

发布于2024-08-01
浏览:487

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?1如有侵犯,请联系[email protected]删除
最新教程 更多>

免责声明: 提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发到邮箱:[email protected] 我们会第一时间内为您处理。

Copyright© 2022 湘ICP备2022001581号-3