How do I add this so that when I type a word "key" into VS Code it changes it to "keyhole" (dumb example I know)?
I tried looking at the settings but got no further.
P粉7524794672023-09-08 10:24:48
If you have complex text segments with fields, you can use fragments.
If you just want to replace text, check out
P粉9204852852023-09-08 09:21:40
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.