Skip to content

Instantly share code, notes, and snippets.

@felipemullen
Created July 21, 2022 13:00
A Visual Studio Code (VSCode) snippet for Typescript regions
// Usage:
// Add this snippet to your snippets/typescript.json file and simply type "region" in any ts file to use this snippet
//
// If you are unsure of how to edit your typescript snippets, you can get to it using the built in vscode command palette:
// - from any vscode window, use cmd/ctrl+p to bring up the palette
// - type "snip" and select the option "Configure User Snippets"
// - type "typescript" and select the option "typescript.json"
"region": {
"prefix": "region",
"body": [
"//#region ${1:Name}",
"$0",
"//#endregion"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment