When I was doing the front-end before, I configured code snippets, which can be typed out directly. In fact, any language can be used.
1. Call out the preferences console configuration
win: Ctrl + Shift + P
mac: command + Shift + P
Then enter Snippets
select configure user code snippet
2. Select the corresponding language to generate a .json file
3. Convert the required templates
Click on the link snippet to convert
A template that can be converted into bytes, I randomly copied a bit of python content here.
4. Paste into the corresponding .json file
Pay attention to adding your own trigger method, here I choose to enter 'python' trigger
5. Trigger the corresponding effect
trigger complete