Go to a specific directory with bash,
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.
code . -rIt 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,
code . -nExecute the above command.