Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

improved the class snippet to automatically get the classname from th…

…e filename
  • Loading branch information...
commit 49bd11ebc850f6288a63f6d8412909393f1cab64 1 parent 2d953b5
Klaas Pieter Annema klaaspieter authored committed
Showing with 2 additions and 4 deletions.
  1. +2 −4 Snippets/Class.tmSnippet
6 Snippets/Class.tmSnippet
View
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>
-@implementation ${1:class} : ${2:CPObject}
+ <string>@interface ${1:${TM_FILENAME/\...*$|(^$)/(?1:object)/}} : ${2:CPObject}
{
}
@@ -16,8 +15,7 @@
return self;
}
-@end
-</string>
+@end</string>
<key>name</key>
<string>class</string>
<key>scope</key>
Please sign in to comment.
Something went wrong with that request. Please try again.