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

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
}