Skip to content

Commit 82d13ce

Browse files
committed
A more helpful struct snippet
struct { member } vs. type Foo struct { Bar string }
1 parent 5263bbb commit 82d13ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Snippets/Struct.tmSnippet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<plist version="1.0">
44
<dict>
55
<key>content</key>
6-
<string>struct {
7-
${0:member}
6+
<string>type ${1:Foo} struct {
7+
${2:Bar} ${0:string}
88
}</string>
99
<key>name</key>
1010
<string>Struct</string>

0 commit comments

Comments
 (0)