A nice start to a collection of Magento 2 code snippets for Visual Studio Code!
Trigger: m2.layout
Output:
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
</body>
</page>
Trigger: m2.layout.block
Output:
<block class="" name="" as="" template="" />
Trigger: m2.layout.blockWrap
Output:
<block class="" name="" as="" template="" />
</block>
Trigger: m2.layout.container
Output:
<container name="" label="" output="0" htmlTag="" htmlId="" htmlClass="" />
Trigger: m2.layout.containerWrap
Output:
<container name="" label="" output="0" htmlTag="" htmlId="" htmlClass="">
</container>
Trigger: m2.layout.refBlock
Output:
<referenceBlock name="">
</referenceBlock>
Trigger: m2.layout.refContainer
Output:
<referenceContainer name="">
</referenceContainer>
Trigger: m2.layout.move
Output:
<move element="" destination="" />
Trigger: m2.layout.remove
Output:
<remove src="" />
Trigger: m2.layout.update
Output:
<update handle=""/>
Trigger: m2.layout.args
Output:
<arguments>
</arguments>
Trigger: m2.layout.argument
Output:
<argument name="" xsi:type=""></argument>
Trigger: m2.layout.attr.translate
Output:
translate=""
Trigger: m2.layout.attr.xsi:type
Output:
xsi:type=""
Trigger: m2.layout.attr.handle
Output:
handle=""
Trigger: m2.layout.attr.destination
Output:
destination=""
Trigger: m2.layout.attr.element
Output:
element=""
Trigger: m2.layout.attr.htmlId
Output:
htmlId=""
Trigger: m2.layout.attr.htmlClass
Output:
htmlClass=""
Trigger: m2.layout.attr.htmlTag
Output:
htmlTag=""
Trigger: m2.layout.attr.output
Output:
output=""
Trigger: m2.layout.attr.label
Output:
label=""
Trigger: m2.layout.attr.as
Output:
as=""
Trigger: m2.layout.attr.template
Output:
template=""
Trigger: m2.layout.attr.class
Output:
class=""
Trigger: m2.layout.attr.name
Output:
name=""
Trigger: m2.layout.attr.before
Output:
before=""
Trigger: m2.layout.attr.after
Output:
after=""
Trigger: m2.layout.attr.cacheable
Output:
cacheable=""
Trigger: m2.layout.attr.display
Output:
display=""
Trigger: m2.layout.attr.remove
Output:
remove=""
Trigger: m2.module
Output:
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/module.xsd">
<module name="" setup_version="0.1.0" />
</config>
Trigger: m2.module.registration
Output:
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::MODULE,
'',
__DIR__
);
Trigger: m2.di
Output:
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
</config>
Trigger: m2.di.pref
Output:
<preference for="" type="" />
Trigger: m2.di.type
Output:
<type name="">
</type>
Trigger: m2.di.type.args
Output:
<arguments>
<argument name="" xsi:type=""></argument>
</arguments>
Trigger: m2.di.type.args.item
Output:
<item name="" xsi:type=""></item>
Trigger: m2.di.plugin
Output:
<plugin name=""
type=""
sortOrder=""/>
Trigger: m2.di.virtualtype
Output:
<virtualType name="" type="">
</virtualType>
Trigger: m2.events
Output:
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
</config>
Trigger: m2.events.event
Output:
<event name="">
</event>
Trigger: m2.events.observer
Output:
<observer name="" instance="" />
Trigger: m2.routes
Output:
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
</config>
Trigger: m2.routes.router
Output:
<router id="">
</router>
Trigger: m2.routes.route
Output:
<route id="" frontName="">
<module name="" />
</route>