Codespaces not saving extensions/settings between sessions #171329
Replies: 4 comments
-
Beta Was this translation helpful? Give feedback.
-
|
I also personally observed things, though some of my observations might not be correct, here is the list :
bottom line is you need a combo → put required extensions in note: if some settings are problematic, but the settings are minimal, like it's easier to manually setup after the Codespaces, then let it be, remember, Codespaces is a disposable but once a single instance is successful, then we don't delete this from time to time in the same device, right ? it does not even delete itself if you continuously use it changing laptops or places are not day to day scenario, so some problematic setting can be manual think of it like a local clone of what we are working with, once we have that, we use that clone always, so regularly creating a new instance of a Codespace is not a day to day scenario too, so minimal manual is acceptable also personally, I have develop Codespaces for dev in Laravel and MERN, feel free ! https://github.com/jfullstackdev/codespaces-template-mern https://github.com/jfullstackdev/codespaces-template-laravel |
Beta Was this translation helpful? Give feedback.
-
|
@evelyny72 Hi! Codespaces team here. You are able to enable VS Code sync. You need to ensure this box is checked in your settings page: Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
Hi all,
I’ve been experimenting with GitHub Codespaces for a new project, and I’ve run into something confusing. Every time I reopen a codespace, some of my VS Code extensions and custom settings (like themes and editor config) don’t seem to stick. I end up reinstalling or reconfiguring them each time, which makes the workflow feel a bit clunky.
I’ve already tried:
Saving settings in .devcontainer/devcontainer.json
Using dotfiles with a repo linked in my account settings
Manually reinstalling extensions inside the codespace
But even after doing this, not everything persists. It’s possible I’m setting up the dotfiles incorrectly, or missing a step with how Codespaces handles personalization.
My questions are:
What’s the proper way to ensure extensions and settings persist across all Codespaces?
Should this be handled entirely through dotfiles, or is there a built-in way to sync like regular VS Code does?
If I’m using .devcontainer, is there a “best practice” for specifying extensions/settings there?
Any advice or examples would be super helpful. I just want to make sure I’m setting things up the right way instead of fighting against the platform.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions