ProcessWire SnippetsSnippets for rapid PHP Development with the ProcessWire CMS/CMF VSCode Marketplace: https://marketplace.visualstudio.com/items?itemName=baumrock.pwsnippets FeaturesPlease see section I'm using the pw: Add ProcessWire Namespacepwire: Add wired objectpwnew: Wire new instance of a Classpwhookargument: Get hook argumentpwhookobject: Get hook objectpwmod: Get ProcessWire Modulepwmodule: PW Module Boilerplatepwtextformatter: PW Textformatter Boilerplatepwinputfield: Add Inputfield Boilerplatepwfieldtype: Add Fieltype Boilerplatepwprocessmodule: Add ProcessModule BoilerplatepwexecuteFoopwModuleConfigClass: Add PW Module Config Class BoilerplatepwSqlQuery: Query the database via SQLpwex and pwex404: Throw WireExceptionspwhook and pwHookInline: Attaching hookspwResetAdminContributingFirst, create your snippet in your users folder to test it! See docs When it works, go to your VSCode Extensions folder
If you have PWSnippets extension installed, uninstall it (or delete the folder now)! Fork this Repo into your Github account and clone it into the extensions folder:
Create a test-file and check that the extension works:
Open the extension's folder in VSCode: Now open Now open
Make sure to separate all snippet objects by commas except the last one (it needs to be valid JSON syntax)! Reload the window! Go to Now add your own snippets. When done create a Pull Request so that I can update the VSCode Extension. Thank you :) |