Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Ab Code TemplatesNew to Visual Studio Code? Get it now.
Ab Code Templates

Ab Code Templates

Abhinav Kumar Maurya

|
656 installs
| (6) | Free
Generates the custom code snippets of different programing language C++, JavaScript, Python, Java, HTML
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ab-code-templates README

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

  1. 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.
  2. Make Sure to name the file correctly with (.py , .cpp , .java , .js , .html)

picture alt

  1. 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).

  2. After saving the file Press Ctrl+Shift+P a command pallet will open where you have to write the

picture alt

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
  1. After this a pop will rise showing the name of shorthand word for you code snippet.

picture alt

  1. Now relode the VS Code or close the VS Code and start again.
  2. In new code editor file select the language and type

remember writing "!" before

!{Name_of_your_code_snippet}

picture alt

1.0.0

Initial release of this extension.


  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft