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 Namespace
pwire: Add wired object
pwnew: Wire new instance of a Class
pwhookargument: Get hook argument
pwhookobject: Get hook object
pwmod: Get ProcessWire Module
pwmodule: PW Module Boilerplate
pwtextformatter: PW Textformatter Boilerplate
pwinputfield: Add Inputfield Boilerplate
pwfieldtype: Add Fieltype Boilerplate
pwprocessmodule: Add ProcessModule Boilerplate
pwexecuteFoo
pwModuleConfigClass: Add PW Module Config Class Boilerplate
pwSqlQuery: Query the database via SQL
pwex and pwex404: Throw WireExceptions
pwhook and pwHookInline: Attaching hooks
pwResetAdmin
ContributingFirst, 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 :) |




















