Created
July 21, 2022 13:00
A Visual Studio Code (VSCode) snippet for Typescript regions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
// 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