Go to the extensions tab and search for "QuickReplace".
Click on "Install".
Usage
Open the VSCode command palette (Ctrl + Shift + P).
Run the command: QuickReplace: Edit Patterns.
Edit and add your patterns and corresponding replacement strings.
Run the command: QuickReplace: Reload Patterns (this will activate the modified/created patterns).
While typing, use the completion suggestions to quickly insert your defined text strings. (Ctrl + Space to activate Intellisense)
Configuration
The extension configuration is done via the QuickReplace: Edit Patterns command (from the VSCode command palette) by adding patterns and replacements in the extension settings. Here is an example configuration:
{
"@quickreplace": "<div>\n <h1>QuickReplace</h1>\n <p>Here is an example</p>\n</div>",
"@test": "Use the “Edit Patterns” command to add your own patterns"
}