Today we launched OpenCart code snippets VSCode extensions which you can find at https://marketplace.visualstudio.com/items?itemName=webocreationcom.ocsnippets, We published OpenCart code snippets VScode extensions for OpenCart developers. It contains some OpenCart code snippets for PHP and Twigs. Github repository for this https://github.com/rupaknepali/opencartsnippetsvscode. Creating and publishing Visual Studio code extensions is easy than I thought just follow https://code.visualstudio.com/api/get-started/your-first-extension and https://code.visualstudio.com/api/working-with-extensions/publishing-extension

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

Documentation

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

PHP page supported snippets:

  • occ : It creates new Controller class
  • ocm : It creates 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.

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

1.0.0

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

For more information

Enjoy!

LEAVE A REPLY

Please enter your comment!
Please enter your name here