Sets a VSCode setting.
Set-VSCodeSetting.ps1 [-JsonPointer] <String> [-Value] <PSObject> [-Workspace]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Set-VSCodeSetting.ps1 git.autofetch $true -Workspace
Sets {“git.autofetch”: true} in the VSCode user settings.
Set-VSCodeSetting.ps1 powershell.codeFormatting.preset Allman -Workspace
Sets {“powershell.codeFormatting.preset”: “Allman”} in the VSCode workspace settings.
Set-VSCodeSetting.ps1 workbench.colorTheme 'PowerShell ISE' -Workspace
Sets {“workbench.colorTheme”: “PowerShell ISE”} in the VSCode workspace settings.
The full path name of the property to set, as a JSON Pointer, which separates each nested element name with a /, and literal / is escaped as ~1, and literal ~ is escaped as ~0.
Type: String
Parameter Sets: (All)
Aliases: Name
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The value of the setting to set.
Type: PSObject
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Indicates that the current workspace settings should be set, rather than the user settings.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.