変数名を別の形式に直す
この記事のポイント
- 今の名前を入れる
- 直したい形を押す
- コピーする
英字の大文字小文字変換 は、camelCaseの名前もsnake_caseに直せます。
手順
- 今の名前を入れる
- 直したい形を押す
- コピーする
「getUserName」は「get_user_name」になります。
英字の大文字・小文字変換(camelCase・snake_case)を使う(無料)
あわせて使えるツール
- 文字数カウント(エントリーシート・レポート用):文章の文字数・行数・原稿用紙の枚数などを数えます。
- 全角・半角、ひらがな・カタカナを変換する:全角・半角、ひらがな・カタカナを変換します。
- 重複した行を消す・並べ替える:重複した行を消して、並べ替えます。
同じツールの、ほかの解説
Renaming Variables to Another Style
Key points
- Enter the current name
- Press the style you want
- Copy it
Text Case Converter can turn a camelCase name into snake_case too.
Steps
- Enter the current name
- Press the style you want
- Copy it
"getUserName" becomes "get_user_name".
Use "Text Case Converter (camelCase, snake_case)" (free)
Tools that go well with this
- Character Counter (for Applications and Reports): Count characters, lines and manuscript sheets of your text.
- Convert Full-Width, Half-Width, Hiragana and Katakana: Convert full-width/half-width and hiragana/katakana.
- Remove Duplicate Lines and Sort a List: Remove duplicate lines and sort them.