This extension is useful for Competitive Programmers and Developers, it helps in fast code writing. You can create your own most used custom code snippet, so that you need not to rewrite or copy paste code again and again during critical times.
Features
By using only one line of command you can easily create your own custom code snippets, in VS code which you can use again by writing its shorthands in code editors. For usage please see the Usage Section. This VS code extension supports and can create snippets for Python, C++, JavaScript, Java and HTML.
Usages
First, you need to create file of any language (Python, C++, JavaScript, Java and HTML) with the name of your shorthand word you want to use in place of your code snippet.
Make Sure to name the file correctly with (.py , .cpp , .java , .js , .html)
Then after writing the code (NOTE: you need not to bother the correct sequence of code, for example if you are writing snippet code for addition of two numbers in C++ you need not to write full syntax i.e. "#include< bits...." you can create only function and use it).
After saving the file Press Ctrl+Shift+P a command pallet will open where you have to write the
Create Snippet {Language_Name}
write in place of {Language Name}
"cpp" for C++
"java" for Java
"python" for Python
"js" for JavaScript
"html" for HTML
After this a pop will rise showing the name of shorthand word for you code snippet.
Now relode the VS Code or close the VS Code and start again.
In new code editor file select the language and type