Merge pull request #348 from r-darwish/java-constructor
Make the Java constructor snippet take the class name from the file name
This commit is contained in:
commit
a34020042c
1 changed files with 3 additions and 1 deletions
|
@ -2,6 +2,8 @@
|
|||
# name: constructor
|
||||
# key: c
|
||||
# --
|
||||
public ${1:Class} (${2:args}) {
|
||||
public ${1:`(file-name-base
|
||||
(or (buffer-file-name)
|
||||
(buffer-name)))`}($2) {
|
||||
$0
|
||||
}
|
Loading…
Reference in a new issue