How to automatically open a vscode workspace?


I wondered if I can specify a .code-workspace file to load automatically when the codespace is launched?



Not currently, but a recent update to the GitHub Codespaces extension remembers the last folder or workspace that you opened and future re-connections to the codespace will connect back there automatically instead of to the repo root. So it’s still a one-time step to get into the code-workspace, and then it should remember.

We are also thinking about ways to declare opening a workspace file immediately, such as in devcontainer.json, but haven’t started working on that yet.