I recently started learning with PyGame and I'm getting tired of writing the basic skeleton over and over again. Is there any way to make Visual Studio Code autoload the skeleton for me?
For example in HTML, when you write an exclamation mark (!) and then press the tab key, it autoloads the basic HTML skeleton.
Would be OK for me, if there was any built-in way to do this. But it would be even better, if I could define the skeleton by myself (because I like to put comments there and I'm used to a particular order of the skeleton) and then connect it to some shorcut or something.
Code snippets may be useful to you.
Here is the official document introduction
Click on the gear icon at the bottom left of vscode, then select
Configure User SnippetsChoose
pythonin the listAt this time, vscode will automatically create a file named
python.json. There you can customize code snippets.A small example
code in ``python.json`
When you type
def..., there will be a corresponding intellisenseEnter to select, automatically insert the statement you configured.