https://linen.dev logo
Hey all considering the ephemeral nature
# general
d
Hey all, considering the ephemeral nature of the workspaces within Coder, how would you go about preserving VS Code user settings for each individual developer? Is that json file to be fetched as a file in during the container creation?
k
You could use setting sync, that's what I use at least.
For me personally, this is the easiest way to go about it.

https://cdn.discordapp.com/attachments/1098620727147647049/1098622767735259256/image.png

code-server
itself doesn't have support for settings sync, so you will have yo use
vscode-server
You can use this as a example template
m
We create a ~/.local/share/code-server/User/settings.json file in the startup script
k
I think it's the downloading per specific user under one template may not be so simple.
Also saving it to make it global would not work without extra applications
I can't think of a efficient and simple way to do that other than Settings Sync
or some other extension