Skip to content

Instantly share code, notes, and snippets.

@ThePSAdmin
Created January 12, 2018 13:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ThePSAdmin/1a01c72c7ee397d90d8563fdaafe8add to your computer and use it in GitHub Desktop.
Save ThePSAdmin/1a01c72c7ee397d90d8563fdaafe8add to your computer and use it in GitHub Desktop.
VSCode snippets for powershell
{
"Write Verbose": {
"prefix": "wv",
"body": [
"Write-Verbose \"[${TM_FILENAME/(.*)\\..+$/$1/}] $0\""
],
"description": "Write-Verbose with base name of filename."
},
"Write Debug": {
"prefix": "wd",
"body": [
"Write-Debug \"[${TM_FILENAME/(.*)\\..+$/$1/}] $0\""
],
"description": "Write-Debug with base name of filename."
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment