Select the programming language for which you want to configure the code snippets.
Alternatively, use the Ctrl + Shift + P shortcut to open the navigation window.
Go to “File” » “Preferences” » “Configure User Snippets”.
Using both the built-in and custom shortcuts, I was able to automate many aspects of my programming, save time, and become more efficient. However, the user snippets option allows us to create custom shortcuts that will generate our own code - and that’s what we’ll focus on in this post. These great shortcuts are built into Visual Studio Code and generate some code provided by the code editor. I already wrote about these useful HTML shortcuts and JavaScript shortcuts in Visual Studio Code. We can use this to quickly insert any repeating code pattern into our code. The user snippets option in the Visual Studio Code editor allows us to insert custom code snippets using custom shortcuts.