Reference dotfiles repository in devcontainer.json for Codespaces
#134612
-
Select Topic AreaQuestion BodyHello everyone, I was hoping to be able to define a central dotfiles repository in my Now it seems to me that Codespaces do not respect settings for regular Dev Containers in Is this correct? It would be better if I could preconfigure a Codespace entirely while still following the principle to separate customization and personalization. I want to provide the full experience to users of a Codespace and if they want, they can clone the Codespace template and the dotfiles repository to make their own adjustments. There are quite many users who are not developers but would greatly benefit from a cool ready-to-use Codespace instance that they can still customize and (!) personalize in their own way, while they don't need to start from scratch for personalization. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Hello @jpawlowski I think this setting will help you: 1. After clicking on your avatar on the right, go to GitHub settings2. select "codespaces"3. Check that option |
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.



No, it will not help.
I don't want users of my pre-defined Codespace template to enable dotfiles in their profile as a mandatory act.
As I was trying to explain, I want this setting to be in the
devcontainer.jsonfile, just like it is possible for traditional Dev Containers as well. I want to ship a ready-to-use Codespace that people may optionally personalize if they want, but they can start with a prepared dotfiles repository that will just work.I do think this should be natively integrated into Codespaces. In the meantime, I have started to develop a Dev Container Feature for Codespaces that will allow ingesting dotfiles to Codespaces via
devcontainers.json(jpawlowski/devcontainer-fe…