macOS ターミナルから VSCode を実行する
ターミナルから VSCode を実行する
ターミナルで特定のディレクトリに移動し、特定のファイルを開くことができる。
$ code [File path]
設定方法は次のとおりである。
- Visual Studio Code を起動する。
- Command Palette (⇧⌘P) を押すと、コマンドパレットが開く。
shell commandと入力し、Shell Command: Install 'code' command in PATHを見つけて実行する。