VS Codeで編集中のファイル所在をFinderで開くショートカット設定(⌘⇧G)

  1. VS Code起動
  2. コマンドパレット表示(⌘⇧P)
  3. 「Preferences: Open Keyboard Shortcuts (JSON)」選択
  4. 開いたkeybindings.jsonへの以下内容貼り付け
[
  {
    "key": "cmd+shift+g",
    "command": "revealFileInOS",
    "when": "isMac && editorTextFocus && resourceScheme == 'file' && !findWidgetVisible"
  }
]
  1. ファイル保存(⌘S)
  2. 動作確認(エディタ編集中に⌘⇧G押下 → Finderで当該ファイル表示)

コメント

このブログの人気の投稿

よく使う grep オプション

macで node.js と npm をインストールする流れ