Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to specify VSCode (default) settings at code-server launch #4593

Unanswered
unode asked this question in Q&A
Discussion options

Hi everyone,

Is there any way to customize default VSCode settings when code-server is launched?

Initially I thought I could use code-server --config config.json but this config should be YAML and affects only code-server itself not the underlying VSCode.

I'm trying to setup a JupyterHub VSCode using dirkcgrunwald/jupyter_codeserver_proxy and I would like to have some settings using different defaults.

For instance:

{
 "terminal.integrated.gpuAcceleration": "canvas"
}

to avoid some terminal rendering issues.

Is there any way to do this without forcing the setting into the user's ~/.local/share/code-server/User/settings.json file?
We'd like to set these as defaults but still allow the user to override it if they modify their settings.

Thanks!

You must be logged in to vote

Replies: 2 comments 1 reply

Comment options

Hmm... Have you tried going to the config.json in code-server? Hit the F1 key, type Settings, and hit the JSON mode.
Remember, some features are not integrated yet, so it might be a breaking change. If you don't want to break your installation, you could try using the .vscode/config.json method in your project root directory, always works.

You must be logged in to vote
1 reply
Comment options

I'm not sure how https://github.com/dirkcgrunwald/jupyter_codeserver_proxy- works but it looks like there is a .vscode/settings.json in that directory. What happens if you add your custom settings there? Does that work?

Comment options

System-wide default settings are tracked by microsoft/vscode#27972. There is as of very recently system-wide mandatory settings though, which are called Policy settings, see https://code.visualstudio.com/docs/configure/settings#_settings-precedence.

I was on the lookout for system-wide default settings specifically, which still isn't around.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

AltStyle によって変換されたページ (->オリジナル) /