📝

[VS Code] VS Code と Terminal の相互オープン

に公開

Overview

VS Code と terminal を相互にオープンする方法のメモ。

✅️ Terminal → VS Code

Prepare

Terminal で「VS Code を開くコマンド」が使える様にします。

  1. CMD + Shift + P でコマンドパレットを開く
  2. "shell code" で検索
  3. "Shell Command: Install 'code' command in PATH" を選択してインストール

Command

Terminal で以下のコマンドを入力すると、其のディレクトリで VS Code が開きます。

code .

✅️ VS Code → Terminal

VS Code 内で CMD + Shift + C を押下すると、其の VS Code が開いているルートパスで Terminal が開きます。

thoughts

単独の Terminal ではなくタブに追加されると楽なんですが。

Discussion