LoginSignup
3
2

More than 3 years have passed since last update.

VSCodeの大文字小文字ショートカット

Posted at

概要

  • VSCodeのデフォルトの大文字小文字の変換が不便
  • Atomで使っていた変換が直感的で使いやすいのでおすすめしたい
  • 個人的に忘れた時用の忘備録

利点

  • 直感的な入力で大文字小文字を変換できる
    • cmd+k(key)の後に大文字化ならcmd+u(Uppercase)、小文字化ならcmd+l(Lowercase)を押せば良い
  • デフォルトのショートカットを上書きしない

欠点

  • 同時に押すキーは少ないが2アクション必要になってしまう

手順

  1. cmd+pを押してkeybindings.jsonを開く
  2. 以下の[]の中身をコピペする
[
    {
        "key": "cmd+k cmd+u",
        "command": "editor.action.transformToUppercase",
        "when": "editorTextFocus"
    },
    {
        "key": "cmd+k cmd+l",
        "command": "editor.action.transformToLowercase",
        "when": "editorTextFocus"
    }
]
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2