Skip to content

Commit 84bd2af

Browse files
author
Jerry Lopez
authored
Document instruction snippets
1 parent 9177f24 commit 84bd2af

File tree

1 file changed

+39
-60
lines changed

1 file changed

+39
-60
lines changed

README.md

Lines changed: 39 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -44,145 +44,124 @@ A nice start to a collection of Magento 2 code snippets for Visual Studio Code!
4444

4545
### Scaffold
4646

47-
**Trigger:**
48-
```
49-
m2.layout
50-
```
47+
**Trigger:** `m2.layout`
5148

5249
**Output:**
5350
```xml
54-
51+
<?xml version="1.0"?>
52+
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
53+
<body>
54+
55+
</body>
56+
</page>
5557
```
5658

5759
### Block
5860

59-
**Trigger:**
60-
```
61-
m2.layout.block
62-
```
61+
**Trigger:** `m2.layout.block`
6362

6463
**Output:**
6564
```xml
66-
65+
<block class="" name="" as="" template="" />
6766
```
6867

6968
### Block Wrap
7069

71-
**Trigger:**
72-
```
73-
m2.layout.blockWrap
74-
```
70+
**Trigger:** `m2.layout.blockWrap`
7571

7672
**Output:**
7773
```xml
78-
74+
<block class="" name="" as="" template="" />
75+
76+
</block>
7977
```
8078

8179
### Container
82-
**Trigger:**
83-
```
84-
m2.layout.container
85-
```
80+
**Trigger:** `m2.layout.container`
8681

8782
**Output:**
8883
```xml
89-
84+
<container name="" label="" output="0" htmlTag="" htmlId="" htmlClass="" />
9085
```
9186

9287
### Container Wrap
9388

94-
**Trigger:**
95-
```
96-
m2.layout.containerWrap
97-
```
89+
**Trigger:** `m2.layout.containerWrap`
9890

9991
**Output:**
10092
```xml
101-
93+
<container name="" label="" output="0" htmlTag="" htmlId="" htmlClass="">
94+
95+
</container>
10296
```
10397

10498
### Reference Block
10599

106-
**Trigger:**
107-
```
108-
m2.layout.refBlock
109-
```
100+
**Trigger:** `m2.layout.refBlock`
110101

111102
**Output:**
112103
```xml
113-
104+
<referenceBlock name="">
105+
106+
</referenceBlock>
114107
```
115108

116109
### Reference Container
117110

118-
**Trigger:**
119-
```
120-
m2.layout.refContainer
121-
```
111+
**Trigger:** `m2.layout.refContainer`
122112

123113
**Output:**
124114
```xml
125-
115+
<referenceContainer name="">
116+
117+
</referenceContainer>
126118
```
127119

128120
### Move
129121

130-
**Trigger:**
131-
```
132-
m2.layout.move
133-
```
122+
**Trigger:** `m2.layout.move`
134123

135124
**Output:**
136125
```xml
137-
126+
<move element="" destination="" />
138127
```
139128

140129
### Remove
141130

142-
**Trigger:**
143-
```
144-
m2.layout.remove
145-
```
131+
**Trigger:** `m2.layout.remove`
146132

147133
**Output:**
148134
```xml
149-
135+
<remove src="" />
150136
```
151137

152138
### Update
153139

154-
**Trigger:**
155-
```
156-
m2.layout.update
157-
```
140+
**Trigger:** `m2.layout.update`
158141

159142
**Output:**
160143
```xml
161-
144+
<update handle=""/>
162145
```
163146

164147
### Arguments
165148

166-
**Trigger:**
167-
```
168-
m2.layout.arguments
169-
```
149+
**Trigger:** `m2.layout.args`
170150

171151
**Output:**
172152
```xml
173-
153+
<arguments>
154+
155+
</arguments>
174156
```
175157

176158
### Argument
177159

178-
**Trigger:**
179-
```
180-
m2.layout.argument
181-
```
160+
**Trigger:** `m2.layout.argument`
182161

183162
**Output:**
184163
```xml
185-
164+
<argument name="" xsi:type=""></argument>
186165
```
187166

188167
## Attributes

0 commit comments

Comments
 (0)