Today we launched OpenCart code snippets VSCode extensions which you can find at, We published OpenCart code snippets VScode extensions for OpenCart developers. It contains some OpenCart code snippets for PHP and Twigs. Github repository for this Creating and publishing Visual Studio code extensions is easy than I thought just follow and

vscode opencart

Opencart Snippets for Visual Studio Code

This VSCode extension is for OpenCart developer which has a collection of OpenCart snippets. This is just starting, Please let us know if need to add more Contact Us


All snippets start with oc. Some of the snippets are:

PHP page supported snippets:

  • occ: It creates a new Controller class
  • ocm: It creates a new Method or function
  • occm: It creates new starter Model class
  • ocl: It creates new variables for language files
  • ocprf: It creates print_r with pre

Twig page supported snippets:

  • oct: It creates starting template layouts in twig files
  • octfor: It creates for loop in twig files
  • octif: It creates if statement in twig files
  • ocbtn: It creates button markup
  • ocimg: It creates image markup
  • ocbc: It creates breadcrumbs loop in twig files

OCMOD XML page supported snippets:

  • ocmod: It creates OCMOD XML code boilerplate
  • ocmodf: It creates OCMOD XML code boilerplate for files only

Release Notes

Users appreciate release notes as you update your extension.

– OCMOD support added.
– ocmod- for install.xml boilerplate creation
– ocmodf- OCMOD XML file boilerplate
– ocprf- print_r with pre


  • The initial release of Opencart Snippets for vscode
  • Added some snippets. Others are coming soon.

For more information



Please enter your comment!
Please enter your name here