この記事は何
[Ctrl+p]のような何気なく使っているショートカットについて、忘れたり混同しないようにするためにpが何の頭文字なのかとかを調べるだけ・自分なりの意味づけを行うためのメモです。
新しく設定を追加次第追記すると思います。
公式のドキュメント
VSCode上ではCtrl+K+S(Keyboard shortcut)で設定の確認や変更を行う。
よく使うコマンド
command+A: select AllC: Copy(複数行選択との同時利用も可能)D: 複数文字選択+編集・ブラケットで文字を囲う(使用頻度が高いから左下の方にある?)V: paste(おそらく、Cの隣だから)F: FindZ/Y: undo/redo(Zはzzzから?、YはZの手前でZの操作のやり直し)P: Go to file(Preview file)shift+P: focus on command Paletteshift+E: focus on Explorer
ctrl+F: move Cuesor Forward a characterB: move Cuesor Backward a characterE/A: move Cuesor End/Ahead of the lineN/P: move Cuesor Next/Previous lineG: move Cuesor, Go to 指定した行L: select LineQ: Qucik open view(左端のサイドバーをクリックせずに開く)K Ctrl+Q: 最後に編集した位置に移動
option+⇆: 左右の単語に移動(複数行選択との同時利用も可能)↕︎: 上下の行を交換
自分の設定
Ctrl+T Ctrl+M: open Terminalcmd+shift+I: focus on Open Editor(自分はcmd+shiftをfocus on的な意味にしていて、iしか空きがなかったため)cmd+N cmd+F: New File(デフォルトはcmd+nで新規ファイル作成)cmd+N cmd+D: New foldercmd+R cmd+L: Run Linting(pythonなどのリンターを実行する)
特に、リンターなどの実行ショートカットは editorLangId・resourceExtnameなどの条件を合わせて指定する。
editorLangId True when the editor's associated language Id matches. Example: "editorLangId == typescript".
resourceExtname True when the Explorer or editor filename extension matches. Example: "resourceExtname == .js" 引用元:Visual Studio Code Key Bindings