# VS Codeをコマンドから開くときに既存ウィンドウで開くようにする

1 min read

bashで特定のディレクトに行き、

Terminal window
code .

上記コマンドでVS Codeを開くことができる。

いつもこの方法で開いていたのだが、毎回毎回新しいウィンドウで開くのが鬱陶しかったので、既存ウィンドウで開くコマンドを調べてみた。

Terminal window
code . -r

上記で既存ウィンドウで開けるらしい。

ちなみに既存、新しいウィンドウで開くかは設定によるらしい。

もし新しいウィンドウで開きたいときは、

Terminal window
code . -n

上記コマンドを実行する。

My avatar

Thanks for reading my blog post! Feel free to check out my other posts or contact me via the social links in the footer.


More Posts

Comments