Skip to content

Instantly share code, notes, and snippets.

@JustinGrote
Last active August 26, 2024 10:50
Show Gist options
  • Save JustinGrote/e06d3bdbc23dd8d59f53236ed97d7b4d to your computer and use it in GitHub Desktop.
Save JustinGrote/e06d3bdbc23dd8d59f53236ed97d7b4d to your computer and use it in GitHub Desktop.
VSCode Default Dark+ Terminal Theme (VSCode Settings, Windows Terminal profiles.json, PSReadline profile.ps1)
#PSReadline theme to match VSCode editor colors
if ($env:TERM_PROGRAM -eq 'VSCode' -or $env:WT_SESSION) {
if ($psedition -eq 'core') {
$ansiesc = "`e"
} else {
$ansiesc = [char]0x1b
}
Set-PSReadlineOption -Colors @{
Command = "$($ansiesc)[93m"
Comment = "$($ansiesc)[32m"
ContinuationPrompt = "$($ansiesc)[37m"
Default = "$($ansiesc)[37m"
Emphasis = "$($ansiesc)[96m"
Error = "$($ansiesc)[31m"
Keyword = "$($ansiesc)[35m"
Member = "$($ansiesc)[96m"
Number = "$($ansiesc)[35m"
Operator = "$($ansiesc)[37m"
Parameter = "$($ansiesc)[37m"
Selection = "$($ansiesc)[37;46m"
String = "$($ansiesc)[33m"
Type = "$($ansiesc)[34m"
Variable = "$($ansiesc)[96m"
}
#Verbose Text should be distinguishable, some hosts set this to yellow
$host.PrivateData.ErrorForegroundColor = 'Red'
$host.PrivateData.VerboseForegroundColor = 'Cyan'
$host.PrivateData.WarningForegroundColor = 'Yellow'
$host.PrivateData.DebugForegroundColor = 'Magenta'
$host.PrivateData.ProgressForegroundColor = 'Yellow'
$host.PrivateData.ProgressBackgroundColor = 'DarkCyan'
}
{
"name": "Dark Plus",
"background": "#1E1E1E",
"foreground": "#D4D4D4",
"brightBlack": "#666666",
"brightBlue": "#569cd6",
"brightCyan": "#9cdcfe",
"brightGreen": "#b5cea8",
"brightPurple": "#daadd6",
"brightRed": "#f14c4c",
"brightWhite": "#e5e5e5",
"brightYellow": "#DCDCAA",
"black": "#000000",
"blue": "#2472c8",
"cyan": "#11a8cd",
"green": "#6a9955",
"purple": "#C586C0",
"red": "#cd3131",
"white": "#e5e5e5",
"yellow": "#CE9178"
}
"workbench.colorCustomizations": {
"terminal.ansiBlack": "#000000",
"terminal.ansiBlue": "#2472c8",
"terminal.ansiBrightBlack": "#666666",
"terminal.ansiBrightBlue": "#569cd6",
"terminal.ansiBrightCyan": "#9cdcfe",
"terminal.ansiBrightGreen": "#b5cea8",
"terminal.ansiBrightMagenta": "#daadd6",
"terminal.ansiBrightRed": "#f14c4c",
"terminal.ansiBrightWhite": "#e5e5e5",
"terminal.ansiBrightYellow": "#DCDCAA",
"terminal.ansiCyan": "#11a8cd",
"terminal.ansiGreen": "#6a9955",
"terminal.ansiMagenta": "#C586C0",
"terminal.ansiRed": "#cd3131",
"terminal.ansiWhite": "#e5e5e5",
"terminal.ansiYellow": "#CE9178",
"terminal.background": "#1E1E1E",
"terminal.foreground": "#D4D4D4"
},
"workbench.colorTheme": "Default Dark+",
//Requires https://marketplace.visualstudio.com/items?itemName=justin-grote.better-powershell-syntax-highlighting
"editor.tokenColorCustomizations": {
"[Default Dark+]": {
"textMateRules": [
{
"scope": "storage.type.function",
"settings": {
"foreground": "#c586c0"
}
}
]
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment