VSCode

VSCode Mac これだけは覚えておきたい!キーボードショートカット

Visual Studio Code Macでこれだけは覚えておきたい!と思うキーボードショートカットのまとめです。あとで追加するかも。

行の編集

上に行を追加command + shift + enter
カーソル行(選択行)を上の行と入れ替えoption +
カーソル行(選択行)を下の行と入れ替えoption +
カーソル行を上にコピーoption + shift +
カーソル行を下にコピーoption + shift +
カーソル行をインデントcommand + ]
カーソル行をアンインデントcommand + [
行コメントをトグルcommand + /
ブロックコメントをトグルshift + option + A
行末のスペースを削除command + K , command + X

カーソル・選択

カーソルを追加option + クリック
矩形選択shift + option + ドラッグ
指定した行へ移動control + G
前に表示していた場所に戻るcontrol + -
前に表示していた場所に戻る、の逆control + shift + -

ファイル・フォルダ

ファイルを新規ウインドウで開くcommand + K , O
ファイルのパスをコピーcommand + K , P

エディタ(ほか)の表示

ファイルを横に並べて開くcontrol + enter
第1カラム(一番左)をアクティブにするcommand + 1
第nカラムへ移動、なければ右へカラムを作成command + 23 以降)
開いているエディターを切り替えるcontrol + tab または
control + shift + tab
右のタブへ切り替えるcommand + option +
左のタブへ切り替えるcommand + option +
コマンドパレットcommand + shift + P または
F1
設定command + ,

サイドパネル

エクスプローラーcommand + shift + E
プロジェクト内検索command + shift + F
Gitcontrol + shift + G
デバッグcommand + shift + D
拡張機能command + shift + X
サイドパネルへ移動command + 0
サイドパネルの表示/非表示command + B

検索・置換

ファイルを検索して開くcommand + P + すぐ入力開始
置換command + option + F
1つづつ置換command + shift + 1
すべて置換command + option + enter
ファイル内検索command + F
次の一致項目へ移動command + G または
command + F3
前の一致項目へ移動command + shift + G または
command + shift + F3
プロジェクト内検索command + shift + F
選択範囲を検索command + option + L
選択された文字列のすべての出現箇所を変更command + F2

ターミナル・コンソール

問題(Problems)command + shift + M
出力(Output)command + shift + U
デバッグコンソールcommand + shift + Y
ターミナルcontrol + shift + @

シンボル

シンボルの定義へ移動command + クリック または
F12
参照検索command + T
シンボル参照箇所のインライン表示shift + F12
シンボル定義箇所のインライン表示option + F12
シンボルの名前を変更F2