[おすすめ] 表示 >> 外観 >> アクティビティバーを表示のチェックを外す ← 基本的にはエクスプローラー、グローバル検索、拡張機能のショートカットキーを覚えた後は、これは必要ありません。表示スペースを節約できます。
[オプション] 表示 >> 外観 >> メニューバーを表示のチェックを外す ← タイトルバーと同じ行にあるため、スペースは節約されませんが、少しすっきりしていると言えます。Alt キーを押すと一時的に表示されます。
さて、伝説のゼンモード、つまりアクティビティバーを閉じるショートカットキーです。
また、VSCode を使う前に長い間 TortoiseGit を使っていたようですので、VSCode に組み込まれている Git 関連の機能はあまり理解していません。ctrl + shift + gはすごいですね。。。
一部のキーはカスタムされており、競合する定義を削除する必要があります。
いくつかの空白はデフォルトの項目がなく、カスタムするかどうかが決まっていないためです。
コマンド項目に基づいて実際のバインドキーまたはカスタムを確認してください。
「VSCode」快捷キーのメモ_コンピューターネットワーク_沈氷浮水 ← ブログ内の表のレイアウトが非常に悪いです - -;
「VSCode」快捷キーのメモ - GitHub 上の md ファイル ← このページを GitHub で確認することをお勧めします。
| ショートカットキー | 操作 | コマンド |
|---|---|---|
| ctrl + b | サイドバーの表示 / 非表示 | workbench.action.toggleSidebarVisibility |
| ctrl + d | 現在の行のコピー(下方向) | editor.action.copyLinesDownAction |
| ctrl + e | Emmet の略語の展開 | editor.emmet.action.expandAbbreviation |
| ctrl + q | コメントの切り替え | editor.action.commentLine |
| ctrl + l | 現在の行の選択 | expandLineSelection |
| ctrl + shift + ↑ | テキストの選択 - 上方向 | cursorUpSelect |
| ctrl + shift + ↓ | テキストの選択 - 下方向 | cursorDownSelect |
| ctrl + ← | カーソルの移動 - 単語の左側 | cursorWordLeft |
| ctrl + shift + ← | テキストの選択 - 同上 | cursorWordLeftSelect |
| カーソルの移動 - 単語の先頭 | cursorWordPartLeft | |
| テキストの選択 - 同上 | cursorWordPartLeftSelect | |
| ctrl + → | カーソルの移動 - 単語の右側 | cursorWordEndRight |
| ctrl + shift + → | テキストの選択 - 同上 | cursorWordEndRightSelect |
| カーソルの移動 - 単語の末尾 | cursorWordPartRight | |
| テキストの選択 - 同上 | cursorWordPartRightSelect | |
| shift + alt + ← | 選択範囲を縮小する | editor.action.smartSelect.shrink |
| shift + alt + → | 選択範囲を拡大する | editor.action.smartSelect.expand |
| ctrl + p | 最近開いた単一ファイル | workbench.action.quickOpen |
| ctrl + r | 最近開いたワークスペースまたはフォルダ | workbench.action.openRecent |
| ctrl + shift + o | エディタ内のシンボルに移動 | workbench.action.gotoSymbol |
| ctrl + alt + b | コード / ドキュメントのフォーマット | editor.action.formatDocument |
| ctrl + alt + ↑ | 同じ列の上の行にカーソルを追加 | editor.action.insertCursorAbove |
| ctrl + alt + ↓ | 同じ列の下の行にカーソルを追加 | editor.action.insertCursorBelow |
| ctrl + shift + p | コマンドパレット | workbench.action.showCommands |
| ctrl + shift + x | 拡張機能の表示 | workbench.view.extensions |
| ctrl + shift + g | ソースコード管理(Git) | workbench.view.scm |
| ctrl + shfit + e | ワークスペース / フォルダの表示 | workbench.view.explorer |
| ctrl + shift + k | 現在の行の削除 | ctrl + l、del の方が安全かもしれません。 |
| ctrl + shift + l | すべての一致項目を選択する | addCursorsAtSearchResults |
| alt + d | 次の一致項目を選択する | editor.action.addSelectionToNextFindMatch |
| alt + ↑ | 行を上に移動する | editor.action.moveLinesUpAction |
| alt + ↓ | 行を下に移動する | editor.action.moveLinesDownAction |
| ctrl + k z | ゼンモード | workbench.action.toggleZenMode |
| ctrl + k m | 言語モード | workbench.action.editor.changeLanguageMode |
| ctrl + k k | キーバインディングの設定 | workbench.action.openGlobalKeybindings |
| ctrl + k u | 保存されていないエディタを閉じる | workbench.action.closeUnmodifiedEditors |
| ctrl + k o | アクティブなファイルを新しいウィンドウで開く | workbench.action.files.showOpenedFileInNewWindow |
| ctrl + k ctrl + l | 小文字に変換 | editor.action.transformToLowercase |
| ctrl + k ctrl + u | 大文字に変換 | editor.action.transformToUppercase |