# Make VS Code open in an existing window when opening from a command

日本語版: 日本語で読む

Go to a specific directory with bash,

Terminal window
code .

You can open VS Code with the above command.

I always opened it this way, but it was annoying to have to open it in a new window every time, so I looked into the command to open it in an existing window.

Terminal window
code . -r

It seems like the above will open it in an existing window.

By the way, it seems that whether to open an existing window or a new window depends on the settings.

If you want to open in a new window,

Terminal window
code . -n

Execute the above command.


More Posts
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.


Comments