この記事は、Unipos Advent Calendar 2024 の2日目の記事です。
VS Code ニッチなショートカットまとめ
この1年間ぐらいで探ってみた知ってると便利なVS Codeのショートカットを集めてみました。なおかつ、主観でニッチなものを集めてみました。
基本 Mac のショートカットで書きます。Windowsの方はごめんなさい
⌘ + shift + f
からの ⌘ + ↓
または、⌘ + ↑
検索後のフィルターや結果に素早く移動できます。

⌘ + shift + f
からの F4
または、shift + F4
検索後の結果にすぐにアクセスしながらEditorで開いた状態にもなります。また、F4
または、shift + F4
を何度も入力することで次や前の結果にすぐに移動できます。

⌘ + shift + .
素早くある程度の塊でファイル内のコード間の移動ができます。

⌘ + shift + .
からの ←
パンくずを辿って他のファイルへアクセスできます。

⌘ + shift + e
からの ⌘ + P
からの File: New ~~
特定のフォルダーの場所に素早くフォルダやファイルを作成できます。

⌘ + shift + e
からの ↓ または ↑
からの ⌘ + ↓
ファイルツリーを移動して、Editorで選択中のファイルを開くことができます。

⌘ + shift + e
からの ⌘ + alt + f
ファイルツリー内での絞り込みができます。

⌘ + k
からの w
開いているファイルのタブ一覧を特定のEditorから削除します。

⌘ + Control + →
または ⌘ + Control + ←
分割されたEditor間をファイルのタブが移動します。

最後に
結構知らないショートカットが今年1年で多く見つかりました。こういうものを知ってると効率が上がるので、これからも探っていきたいです。
備考
- 利用させてもらったコード: https://github.com/microsoft/vscode