In the simple case shown above, you can write a custom code snippet. (See Snippets in Command Palette: Configuring User Snippets Commands) For example.
{
"key": {
"prefix": "key",
"body": "key hole",
// "scope": "java" // uncomment to make it only apply for Java files
}
}
I think that aside from writing or using an extension that helps achieve this, the suggestion (outside of snippets) could be to use plain (no extension) VS Code for configuration.
If you have complex text segments with fields, you can use fragments.
If you just want to replace text, check out
Complete from file
In the simple case shown above, you can write a custom code snippet. (See
Snippets in Command Palette: Configuring User Snippets
Commands) For example.I think that aside from writing or using an extension that helps achieve this, the suggestion (outside of snippets) could be to use plain (no extension) VS Code for configuration.