Skip to content

Minimal completely valid configuration file (settings.json)? #16781

Answered by DHowett
Hrxn asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry.

Yes, userDefaults.json is used to bootstrap a user's settings file if they don't have one.

If they do have one--and it contains {}--that is entirely valid.

Terminal writes the defaults for newTabMenu, the current extant profiles (PowerShell, cmd), defaultProfile, some schemes (fewer after #12800) and a landing spot for themes and actions. It will also fill in a $schema for folks who are editing it in VSCode/VS.

If I start with a settings file that contains {}, it expands to...

Terminal's first write to a minimal settings file
{
    "$help": "https://aka.ms/terminal-documentation",
    "$schema": "https://aka.ms/terminal-profiles-schema",
    "actions": [],
    "defaultProfile": "{…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Hrxn
Comment options

@DHowett
Comment options

@Hrxn
Comment options

@DHowett
Comment options

Answer selected by Hrxn
@Hrxn
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants