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:
Andrea Crotti 2019-10-10 12:06:43 +01:00 committed by GitHub
commit a34020042c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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
}