Skip to content

Instantly share code, notes, and snippets.

@scrthq
Created July 28, 2019 18:03
Show Gist options
  • Save scrthq/359facf570289d4e983c7c658617987c to your computer and use it in GitHub Desktop.
Save scrthq/359facf570289d4e983c7c658617987c to your computer and use it in GitHub Desktop.
VSCode Settings to use with the One Dark Pro theme to complete colorization of PowerShell tokens and add some extra fanciness. Use with theme: https://marketplace.visualstudio.com/items?itemName=zhuangtongfa.Material-theme
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"name": "Italics",
"scope": [
"comment",
"punctuation.definition.comment",
"keyword",
"storage",
"entity.other.attribute-name",
"entity.name.method.js",
"variable.language",
"keyword.control",
"text.html.basic entity.other.attribute-name.html",
"text.html.basic entity.other.attribute-name",
"tag.decorator.js entity.name.tag.js",
"tag.decorator.js punctuation.definition.tag.js",
"source.js constant.other.object.key.js string.unquoted.label.js",
"markup.italic",
"markup.quote",
"keyword.operator.comparison",
"support.function",
"entity.name.function"
],
"settings": {
"fontStyle": "italic"
}
},
{
"name": "InvalidIllegal",
"scope": [
"invalid.illegal"
],
"settings": {
"foreground": "#91d8ff"
}
},
{
"name": "PowerShellConstants",
"scope": [
"support.constant.automatic",
"support.variable.automatic"
],
"settings": {
"foreground": "#d19a66"
}
},
{
"name": "PowerShellPunctuation",
"scope": [
"punctuation.definition.variable"
],
"settings": {
"fontStyle": "italic",
"foreground": "#c678dd"
}
},
{
"name": "PowerShellPunctuation",
"scope": [
"punctuation.definition.variable",
"meta.group.array-expression"
],
"settings": {
"foreground": "#c678dd"
}
},
{
"name": "PowerShellMembers",
"scope": [
"variable.other.member"
],
"settings": {
"foreground": "#61afef"
}
}
]
}
@AndrewPla
Copy link

Thanks for sharing this. Much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment