首頁  >  文章  >  web前端  >  使用vscode將snake_case轉換為camelCase

使用vscode將snake_case轉換為camelCase

王林
王林原創
2024-07-19 12:49:11332瀏覽

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